From a48bc0143bd39d623cd24bc97d2dc2c6ce6703a8 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Tue, 7 Nov 2023 12:24:01 +0100 Subject: [PATCH 01/20] atx stream --- release/go/spacemesh/v1/activation.pb.go | 53 +- release/go/spacemesh/v1/activation.pb.gw.go | 58 + release/go/spacemesh/v1/activation_grpc.pb.go | 67 +- .../go/spacemesh/v1/activation_types.pb.go | 1003 ++++++++++++++++- spacemesh/v1/activation.proto | 2 + spacemesh/v1/activation_types.proto | 71 ++ 6 files changed, 1203 insertions(+), 51 deletions(-) diff --git a/release/go/spacemesh/v1/activation.pb.go b/release/go/spacemesh/v1/activation.pb.go index 9f08b498..b82d1285 100644 --- a/release/go/spacemesh/v1/activation.pb.go +++ b/release/go/spacemesh/v1/activation.pb.go @@ -30,7 +30,7 @@ var file_spacemesh_v1_activation_proto_rawDesc = []byte{ 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, - 0x91, 0x01, 0x0a, 0x11, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, + 0xec, 0x01, 0x0a, 0x11, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3a, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x18, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, @@ -39,34 +39,43 @@ var file_spacemesh_v1_activation_proto_rawDesc = []byte{ 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x69, 0x67, 0x68, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x42, 0xb4, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, - 0x68, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, - 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, 0x3b, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x58, - 0x58, 0xaa, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x56, 0x31, - 0xca, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0xe2, - 0x02, 0x18, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0x5c, 0x47, - 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x53, 0x70, 0x61, - 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x06, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x25, 0x2e, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, + 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, + 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, + 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x42, 0xb4, + 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, + 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x6f, 0x73, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x6d, 0x65, 0x73, 0x68, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x53, + 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x53, 0x70, + 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x53, 0x70, 0x61, + 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, + 0x68, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var file_spacemesh_v1_activation_proto_goTypes = []interface{}{ - (*GetRequest)(nil), // 0: spacemesh.v1.GetRequest - (*emptypb.Empty)(nil), // 1: google.protobuf.Empty - (*GetResponse)(nil), // 2: spacemesh.v1.GetResponse - (*HighestResponse)(nil), // 3: spacemesh.v1.HighestResponse + (*GetRequest)(nil), // 0: spacemesh.v1.GetRequest + (*emptypb.Empty)(nil), // 1: google.protobuf.Empty + (*ActivationStreamRequest)(nil), // 2: spacemesh.v1.ActivationStreamRequest + (*GetResponse)(nil), // 3: spacemesh.v1.GetResponse + (*HighestResponse)(nil), // 4: spacemesh.v1.HighestResponse + (*ActivationStreamResponse)(nil), // 5: spacemesh.v1.ActivationStreamResponse } var file_spacemesh_v1_activation_proto_depIdxs = []int32{ 0, // 0: spacemesh.v1.ActivationService.Get:input_type -> spacemesh.v1.GetRequest 1, // 1: spacemesh.v1.ActivationService.Highest:input_type -> google.protobuf.Empty - 2, // 2: spacemesh.v1.ActivationService.Get:output_type -> spacemesh.v1.GetResponse - 3, // 3: spacemesh.v1.ActivationService.Highest:output_type -> spacemesh.v1.HighestResponse - 2, // [2:4] is the sub-list for method output_type - 0, // [0:2] is the sub-list for method input_type + 2, // 2: spacemesh.v1.ActivationService.Stream:input_type -> spacemesh.v1.ActivationStreamRequest + 3, // 3: spacemesh.v1.ActivationService.Get:output_type -> spacemesh.v1.GetResponse + 4, // 4: spacemesh.v1.ActivationService.Highest:output_type -> spacemesh.v1.HighestResponse + 5, // 5: spacemesh.v1.ActivationService.Stream:output_type -> spacemesh.v1.ActivationStreamResponse + 3, // [3:6] is the sub-list for method output_type + 0, // [0:3] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for field type_name diff --git a/release/go/spacemesh/v1/activation.pb.gw.go b/release/go/spacemesh/v1/activation.pb.gw.go index 6d2ad680..6a7be2ec 100644 --- a/release/go/spacemesh/v1/activation.pb.gw.go +++ b/release/go/spacemesh/v1/activation.pb.gw.go @@ -100,6 +100,31 @@ func local_request_ActivationService_Highest_0(ctx context.Context, marshaler ru } +func request_ActivationService_Stream_0(ctx context.Context, marshaler runtime.Marshaler, client ActivationServiceClient, req *http.Request, pathParams map[string]string) (ActivationService_StreamClient, runtime.ServerMetadata, error) { + var protoReq ActivationStreamRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + stream, err := client.Stream(ctx, &protoReq) + if err != nil { + return nil, metadata, err + } + header, err := stream.Header() + if err != nil { + return nil, metadata, err + } + metadata.HeaderMD = header + return stream, metadata, nil + +} + // RegisterActivationServiceHandlerServer registers the http handlers for service ActivationService to "mux". // UnaryRPC :call ActivationServiceServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -156,6 +181,13 @@ func RegisterActivationServiceHandlerServer(ctx context.Context, mux *runtime.Se }) + mux.Handle("POST", pattern_ActivationService_Stream_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") + _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + }) + return nil } @@ -241,6 +273,28 @@ func RegisterActivationServiceHandlerClient(ctx context.Context, mux *runtime.Se }) + mux.Handle("POST", pattern_ActivationService_Stream_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spacemesh.v1.ActivationService/Stream", runtime.WithHTTPPathPattern("/spacemesh.v1.ActivationService/Stream")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ActivationService_Stream_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ActivationService_Stream_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -248,10 +302,14 @@ var ( pattern_ActivationService_Get_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"spacemesh.v1.ActivationService", "Get"}, "")) pattern_ActivationService_Highest_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"spacemesh.v1.ActivationService", "Highest"}, "")) + + pattern_ActivationService_Stream_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"spacemesh.v1.ActivationService", "Stream"}, "")) ) var ( forward_ActivationService_Get_0 = runtime.ForwardResponseMessage forward_ActivationService_Highest_0 = runtime.ForwardResponseMessage + + forward_ActivationService_Stream_0 = runtime.ForwardResponseStream ) diff --git a/release/go/spacemesh/v1/activation_grpc.pb.go b/release/go/spacemesh/v1/activation_grpc.pb.go index 8dcbf3bc..01a0c66a 100644 --- a/release/go/spacemesh/v1/activation_grpc.pb.go +++ b/release/go/spacemesh/v1/activation_grpc.pb.go @@ -22,6 +22,7 @@ const _ = grpc.SupportPackageIsVersion7 const ( ActivationService_Get_FullMethodName = "/spacemesh.v1.ActivationService/Get" ActivationService_Highest_FullMethodName = "/spacemesh.v1.ActivationService/Highest" + ActivationService_Stream_FullMethodName = "/spacemesh.v1.ActivationService/Stream" ) // ActivationServiceClient is the client API for ActivationService service. @@ -32,6 +33,7 @@ type ActivationServiceClient interface { Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) // Highest returns the atx id with the highest tick count. Highest(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HighestResponse, error) + Stream(ctx context.Context, in *ActivationStreamRequest, opts ...grpc.CallOption) (ActivationService_StreamClient, error) } type activationServiceClient struct { @@ -60,6 +62,38 @@ func (c *activationServiceClient) Highest(ctx context.Context, in *emptypb.Empty return out, nil } +func (c *activationServiceClient) Stream(ctx context.Context, in *ActivationStreamRequest, opts ...grpc.CallOption) (ActivationService_StreamClient, error) { + stream, err := c.cc.NewStream(ctx, &ActivationService_ServiceDesc.Streams[0], ActivationService_Stream_FullMethodName, opts...) + if err != nil { + return nil, err + } + x := &activationServiceStreamClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ActivationService_StreamClient interface { + Recv() (*ActivationStreamResponse, error) + grpc.ClientStream +} + +type activationServiceStreamClient struct { + grpc.ClientStream +} + +func (x *activationServiceStreamClient) Recv() (*ActivationStreamResponse, error) { + m := new(ActivationStreamResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + // ActivationServiceServer is the server API for ActivationService service. // All implementations should embed UnimplementedActivationServiceServer // for forward compatibility @@ -68,6 +102,7 @@ type ActivationServiceServer interface { Get(context.Context, *GetRequest) (*GetResponse, error) // Highest returns the atx id with the highest tick count. Highest(context.Context, *emptypb.Empty) (*HighestResponse, error) + Stream(*ActivationStreamRequest, ActivationService_StreamServer) error } // UnimplementedActivationServiceServer should be embedded to have forward compatible implementations. @@ -80,6 +115,9 @@ func (UnimplementedActivationServiceServer) Get(context.Context, *GetRequest) (* func (UnimplementedActivationServiceServer) Highest(context.Context, *emptypb.Empty) (*HighestResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Highest not implemented") } +func (UnimplementedActivationServiceServer) Stream(*ActivationStreamRequest, ActivationService_StreamServer) error { + return status.Errorf(codes.Unimplemented, "method Stream not implemented") +} // UnsafeActivationServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ActivationServiceServer will @@ -128,6 +166,27 @@ func _ActivationService_Highest_Handler(srv interface{}, ctx context.Context, de return interceptor(ctx, in, info, handler) } +func _ActivationService_Stream_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ActivationStreamRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ActivationServiceServer).Stream(m, &activationServiceStreamServer{stream}) +} + +type ActivationService_StreamServer interface { + Send(*ActivationStreamResponse) error + grpc.ServerStream +} + +type activationServiceStreamServer struct { + grpc.ServerStream +} + +func (x *activationServiceStreamServer) Send(m *ActivationStreamResponse) error { + return x.ServerStream.SendMsg(m) +} + // ActivationService_ServiceDesc is the grpc.ServiceDesc for ActivationService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -144,6 +203,12 @@ var ActivationService_ServiceDesc = grpc.ServiceDesc{ Handler: _ActivationService_Highest_Handler, }, }, - Streams: []grpc.StreamDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "Stream", + Handler: _ActivationService_Stream_Handler, + ServerStreams: true, + }, + }, Metadata: "spacemesh/v1/activation.proto", } diff --git a/release/go/spacemesh/v1/activation_types.pb.go b/release/go/spacemesh/v1/activation_types.pb.go index ad7599f2..d2057bb7 100644 --- a/release/go/spacemesh/v1/activation_types.pb.go +++ b/release/go/spacemesh/v1/activation_types.pb.go @@ -169,6 +169,717 @@ func (x *HighestResponse) GetAtx() *Activation { return nil } +type ActivationStreamResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + V1 *ActivationV1 `protobuf:"bytes,1,opt,name=v1,proto3" json:"v1,omitempty"` +} + +func (x *ActivationStreamResponse) Reset() { + *x = ActivationStreamResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v1_activation_types_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ActivationStreamResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivationStreamResponse) ProtoMessage() {} + +func (x *ActivationStreamResponse) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v1_activation_types_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ActivationStreamResponse.ProtoReflect.Descriptor instead. +func (*ActivationStreamResponse) Descriptor() ([]byte, []int) { + return file_spacemesh_v1_activation_types_proto_rawDescGZIP(), []int{3} +} + +func (x *ActivationStreamResponse) GetV1() *ActivationV1 { + if x != nil { + return x.V1 + } + return nil +} + +type ActivationV1 struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + NodeId []byte `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` + PublishEpoch uint32 `protobuf:"varint,4,opt,name=publish_epoch,json=publishEpoch,proto3" json:"publish_epoch,omitempty"` + Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` + PrevAtx []byte `protobuf:"bytes,6,opt,name=prev_atx,json=prevAtx,proto3" json:"prev_atx,omitempty"` + PositioningAtx []byte `protobuf:"bytes,7,opt,name=positioning_atx,json=positioningAtx,proto3" json:"positioning_atx,omitempty"` + CommittmentAtx []byte `protobuf:"bytes,8,opt,name=committment_atx,json=committmentAtx,proto3" json:"committment_atx,omitempty"` + InitialPost *Post `protobuf:"bytes,9,opt,name=initial_post,json=initialPost,proto3" json:"initial_post,omitempty"` + Coinbase string `protobuf:"bytes,10,opt,name=coinbase,proto3" json:"coinbase,omitempty"` + Units uint32 `protobuf:"varint,11,opt,name=units,proto3" json:"units,omitempty"` + BaseTick uint32 `protobuf:"varint,12,opt,name=base_tick,json=baseTick,proto3" json:"base_tick,omitempty"` + Ticks uint32 `protobuf:"varint,13,opt,name=ticks,proto3" json:"ticks,omitempty"` + PoetProof *PoetProof `protobuf:"bytes,14,opt,name=poet_proof,json=poetProof,proto3" json:"poet_proof,omitempty"` + Post *Post `protobuf:"bytes,15,opt,name=post,proto3" json:"post,omitempty"` + VrfPostIndex *VRFPostIndex `protobuf:"bytes,16,opt,name=vrf_post_index,json=vrfPostIndex,proto3" json:"vrf_post_index,omitempty"` +} + +func (x *ActivationV1) Reset() { + *x = ActivationV1{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v1_activation_types_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ActivationV1) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivationV1) ProtoMessage() {} + +func (x *ActivationV1) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v1_activation_types_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ActivationV1.ProtoReflect.Descriptor instead. +func (*ActivationV1) Descriptor() ([]byte, []int) { + return file_spacemesh_v1_activation_types_proto_rawDescGZIP(), []int{4} +} + +func (x *ActivationV1) GetId() []byte { + if x != nil { + return x.Id + } + return nil +} + +func (x *ActivationV1) GetNodeId() []byte { + if x != nil { + return x.NodeId + } + return nil +} + +func (x *ActivationV1) GetSignature() []byte { + if x != nil { + return x.Signature + } + return nil +} + +func (x *ActivationV1) GetPublishEpoch() uint32 { + if x != nil { + return x.PublishEpoch + } + return 0 +} + +func (x *ActivationV1) GetSequence() uint64 { + if x != nil { + return x.Sequence + } + return 0 +} + +func (x *ActivationV1) GetPrevAtx() []byte { + if x != nil { + return x.PrevAtx + } + return nil +} + +func (x *ActivationV1) GetPositioningAtx() []byte { + if x != nil { + return x.PositioningAtx + } + return nil +} + +func (x *ActivationV1) GetCommittmentAtx() []byte { + if x != nil { + return x.CommittmentAtx + } + return nil +} + +func (x *ActivationV1) GetInitialPost() *Post { + if x != nil { + return x.InitialPost + } + return nil +} + +func (x *ActivationV1) GetCoinbase() string { + if x != nil { + return x.Coinbase + } + return "" +} + +func (x *ActivationV1) GetUnits() uint32 { + if x != nil { + return x.Units + } + return 0 +} + +func (x *ActivationV1) GetBaseTick() uint32 { + if x != nil { + return x.BaseTick + } + return 0 +} + +func (x *ActivationV1) GetTicks() uint32 { + if x != nil { + return x.Ticks + } + return 0 +} + +func (x *ActivationV1) GetPoetProof() *PoetProof { + if x != nil { + return x.PoetProof + } + return nil +} + +func (x *ActivationV1) GetPost() *Post { + if x != nil { + return x.Post + } + return nil +} + +func (x *ActivationV1) GetVrfPostIndex() *VRFPostIndex { + if x != nil { + return x.VrfPostIndex + } + return nil +} + +type VRFPostIndex struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` +} + +func (x *VRFPostIndex) Reset() { + *x = VRFPostIndex{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v1_activation_types_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VRFPostIndex) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VRFPostIndex) ProtoMessage() {} + +func (x *VRFPostIndex) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v1_activation_types_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VRFPostIndex.ProtoReflect.Descriptor instead. +func (*VRFPostIndex) Descriptor() ([]byte, []int) { + return file_spacemesh_v1_activation_types_proto_rawDescGZIP(), []int{5} +} + +func (x *VRFPostIndex) GetNonce() uint64 { + if x != nil { + return x.Nonce + } + return 0 +} + +type PoetProof struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProofNodes [][]byte `protobuf:"bytes,1,rep,name=proof_nodes,json=proofNodes,proto3" json:"proof_nodes,omitempty"` + Leaf uint64 `protobuf:"varint,2,opt,name=leaf,proto3" json:"leaf,omitempty"` +} + +func (x *PoetProof) Reset() { + *x = PoetProof{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v1_activation_types_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PoetProof) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PoetProof) ProtoMessage() {} + +func (x *PoetProof) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v1_activation_types_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PoetProof.ProtoReflect.Descriptor instead. +func (*PoetProof) Descriptor() ([]byte, []int) { + return file_spacemesh_v1_activation_types_proto_rawDescGZIP(), []int{6} +} + +func (x *PoetProof) GetProofNodes() [][]byte { + if x != nil { + return x.ProofNodes + } + return nil +} + +func (x *PoetProof) GetLeaf() uint64 { + if x != nil { + return x.Leaf + } + return 0 +} + +type PostMeta struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Challenge []byte `protobuf:"bytes,1,opt,name=challenge,proto3" json:"challenge,omitempty"` + Labels uint64 `protobuf:"varint,2,opt,name=labels,proto3" json:"labels,omitempty"` +} + +func (x *PostMeta) Reset() { + *x = PostMeta{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v1_activation_types_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PostMeta) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PostMeta) ProtoMessage() {} + +func (x *PostMeta) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v1_activation_types_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PostMeta.ProtoReflect.Descriptor instead. +func (*PostMeta) Descriptor() ([]byte, []int) { + return file_spacemesh_v1_activation_types_proto_rawDescGZIP(), []int{7} +} + +func (x *PostMeta) GetChallenge() []byte { + if x != nil { + return x.Challenge + } + return nil +} + +func (x *PostMeta) GetLabels() uint64 { + if x != nil { + return x.Labels + } + return 0 +} + +type Post struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Nonce uint32 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` + Indices []byte `protobuf:"bytes,2,opt,name=indices,proto3" json:"indices,omitempty"` + Pow uint64 `protobuf:"varint,3,opt,name=pow,proto3" json:"pow,omitempty"` +} + +func (x *Post) Reset() { + *x = Post{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v1_activation_types_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Post) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Post) ProtoMessage() {} + +func (x *Post) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v1_activation_types_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Post.ProtoReflect.Descriptor instead. +func (*Post) Descriptor() ([]byte, []int) { + return file_spacemesh_v1_activation_types_proto_rawDescGZIP(), []int{8} +} + +func (x *Post) GetNonce() uint32 { + if x != nil { + return x.Nonce + } + return 0 +} + +func (x *Post) GetIndices() []byte { + if x != nil { + return x.Indices + } + return nil +} + +func (x *Post) GetPow() uint64 { + if x != nil { + return x.Pow + } + return 0 +} + +type ActivationStreamRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Epochs *EpochFilter `protobuf:"bytes,1,opt,name=epochs,proto3" json:"epochs,omitempty"` + Id *IDFilter `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + NodeId *NodeIDFilter `protobuf:"bytes,3,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + // CoinbaseFilter is not supported by database index and will result in sequential scan. + // Apply EpochFilter together with CoinbaseFilter for better performance. + Coinbase *CoinbaseFilter `protobuf:"bytes,4,opt,name=coinbase,proto3" json:"coinbase,omitempty"` + Watch bool `protobuf:"varint,5,opt,name=watch,proto3" json:"watch,omitempty"` +} + +func (x *ActivationStreamRequest) Reset() { + *x = ActivationStreamRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v1_activation_types_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ActivationStreamRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivationStreamRequest) ProtoMessage() {} + +func (x *ActivationStreamRequest) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v1_activation_types_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ActivationStreamRequest.ProtoReflect.Descriptor instead. +func (*ActivationStreamRequest) Descriptor() ([]byte, []int) { + return file_spacemesh_v1_activation_types_proto_rawDescGZIP(), []int{9} +} + +func (x *ActivationStreamRequest) GetEpochs() *EpochFilter { + if x != nil { + return x.Epochs + } + return nil +} + +func (x *ActivationStreamRequest) GetId() *IDFilter { + if x != nil { + return x.Id + } + return nil +} + +func (x *ActivationStreamRequest) GetNodeId() *NodeIDFilter { + if x != nil { + return x.NodeId + } + return nil +} + +func (x *ActivationStreamRequest) GetCoinbase() *CoinbaseFilter { + if x != nil { + return x.Coinbase + } + return nil +} + +func (x *ActivationStreamRequest) GetWatch() bool { + if x != nil { + return x.Watch + } + return false +} + +type EpochFilter struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StartEpoch uint32 `protobuf:"varint,1,opt,name=start_epoch,json=startEpoch,proto3" json:"start_epoch,omitempty"` + EndEpoch uint32 `protobuf:"varint,2,opt,name=end_epoch,json=endEpoch,proto3" json:"end_epoch,omitempty"` +} + +func (x *EpochFilter) Reset() { + *x = EpochFilter{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v1_activation_types_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EpochFilter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EpochFilter) ProtoMessage() {} + +func (x *EpochFilter) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v1_activation_types_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EpochFilter.ProtoReflect.Descriptor instead. +func (*EpochFilter) Descriptor() ([]byte, []int) { + return file_spacemesh_v1_activation_types_proto_rawDescGZIP(), []int{10} +} + +func (x *EpochFilter) GetStartEpoch() uint32 { + if x != nil { + return x.StartEpoch + } + return 0 +} + +func (x *EpochFilter) GetEndEpoch() uint32 { + if x != nil { + return x.EndEpoch + } + return 0 +} + +type IDFilter struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *IDFilter) Reset() { + *x = IDFilter{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v1_activation_types_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IDFilter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IDFilter) ProtoMessage() {} + +func (x *IDFilter) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v1_activation_types_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use IDFilter.ProtoReflect.Descriptor instead. +func (*IDFilter) Descriptor() ([]byte, []int) { + return file_spacemesh_v1_activation_types_proto_rawDescGZIP(), []int{11} +} + +func (x *IDFilter) GetId() []byte { + if x != nil { + return x.Id + } + return nil +} + +type NodeIDFilter struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NodeId []byte `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` +} + +func (x *NodeIDFilter) Reset() { + *x = NodeIDFilter{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v1_activation_types_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NodeIDFilter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NodeIDFilter) ProtoMessage() {} + +func (x *NodeIDFilter) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v1_activation_types_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NodeIDFilter.ProtoReflect.Descriptor instead. +func (*NodeIDFilter) Descriptor() ([]byte, []int) { + return file_spacemesh_v1_activation_types_proto_rawDescGZIP(), []int{12} +} + +func (x *NodeIDFilter) GetNodeId() []byte { + if x != nil { + return x.NodeId + } + return nil +} + +type CoinbaseFilter struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Coinbase string `protobuf:"bytes,1,opt,name=coinbase,proto3" json:"coinbase,omitempty"` +} + +func (x *CoinbaseFilter) Reset() { + *x = CoinbaseFilter{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v1_activation_types_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CoinbaseFilter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CoinbaseFilter) ProtoMessage() {} + +func (x *CoinbaseFilter) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v1_activation_types_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CoinbaseFilter.ProtoReflect.Descriptor instead. +func (*CoinbaseFilter) Descriptor() ([]byte, []int) { + return file_spacemesh_v1_activation_types_proto_rawDescGZIP(), []int{13} +} + +func (x *CoinbaseFilter) GetCoinbase() string { + if x != nil { + return x.Coinbase + } + return "" +} + var File_spacemesh_v1_activation_types_proto protoreflect.FileDescriptor var file_spacemesh_v1_activation_types_proto_rawDesc = []byte{ @@ -191,19 +902,103 @@ var file_spacemesh_v1_activation_types_proto_rawDesc = []byte{ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x03, 0x61, 0x74, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x03, - 0x61, 0x74, 0x78, 0x42, 0xb9, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x42, 0x14, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x6c, - 0x65, 0x61, 0x73, 0x65, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, - 0x68, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x76, 0x31, - 0xa2, 0x02, 0x03, 0x53, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, - 0x73, 0x68, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, - 0x68, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, - 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, - 0x02, 0x0d, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x3a, 0x3a, 0x56, 0x31, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x61, 0x74, 0x78, 0x22, 0x46, 0x0a, 0x18, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x2a, 0x0a, 0x02, 0x76, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x31, 0x52, 0x02, 0x76, 0x31, 0x22, 0xc1, 0x04, 0x0a, 0x0c, + 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x31, 0x12, 0x0e, 0x0a, 0x02, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, + 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6e, + 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, + 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, + 0x75, 0x72, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x5f, 0x65, + 0x70, 0x6f, 0x63, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x70, 0x75, 0x62, 0x6c, + 0x69, 0x73, 0x68, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, + 0x65, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, + 0x65, 0x6e, 0x63, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x61, 0x74, 0x78, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x72, 0x65, 0x76, 0x41, 0x74, 0x78, 0x12, + 0x27, 0x0a, 0x0f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x61, + 0x74, 0x78, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x41, 0x74, 0x78, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x78, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x0e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x74, + 0x78, 0x12, 0x35, 0x0a, 0x0c, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x70, 0x6f, 0x73, + 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, + 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x0b, 0x69, 0x6e, 0x69, + 0x74, 0x69, 0x61, 0x6c, 0x50, 0x6f, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x69, 0x6e, + 0x62, 0x61, 0x73, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x69, 0x6e, + 0x62, 0x61, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x18, 0x0b, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x05, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x61, + 0x73, 0x65, 0x5f, 0x74, 0x69, 0x63, 0x6b, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x62, + 0x61, 0x73, 0x65, 0x54, 0x69, 0x63, 0x6b, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x63, 0x6b, 0x73, + 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x74, 0x69, 0x63, 0x6b, 0x73, 0x12, 0x36, 0x0a, + 0x0a, 0x70, 0x6f, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x0e, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x17, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, + 0x2e, 0x50, 0x6f, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x09, 0x70, 0x6f, 0x65, 0x74, + 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x26, 0x0a, 0x04, 0x70, 0x6f, 0x73, 0x74, 0x18, 0x0f, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, + 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x04, 0x70, 0x6f, 0x73, 0x74, 0x12, 0x40, 0x0a, + 0x0e, 0x76, 0x72, 0x66, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, + 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, + 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x52, 0x46, 0x50, 0x6f, 0x73, 0x74, 0x49, 0x6e, 0x64, 0x65, + 0x78, 0x52, 0x0c, 0x76, 0x72, 0x66, 0x50, 0x6f, 0x73, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x22, + 0x24, 0x0a, 0x0c, 0x56, 0x52, 0x46, 0x50, 0x6f, 0x73, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, + 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, + 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x22, 0x40, 0x0a, 0x09, 0x50, 0x6f, 0x65, 0x74, 0x50, 0x72, 0x6f, + 0x6f, 0x66, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f, 0x6e, 0x6f, 0x64, 0x65, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x4e, 0x6f, + 0x64, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x65, 0x61, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x04, 0x6c, 0x65, 0x61, 0x66, 0x22, 0x40, 0x0a, 0x08, 0x50, 0x6f, 0x73, 0x74, 0x4d, + 0x65, 0x74, 0x61, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, + 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x22, 0x48, 0x0a, 0x04, 0x50, 0x6f, 0x73, + 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x69, 0x6e, 0x64, 0x69, 0x63, + 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x65, + 0x73, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x6f, 0x77, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, + 0x70, 0x6f, 0x77, 0x22, 0xf9, 0x01, 0x0a, 0x17, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x31, 0x0a, 0x06, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x45, + 0x70, 0x6f, 0x63, 0x68, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x06, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x73, 0x12, 0x26, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, + 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x44, + 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x33, 0x0a, 0x07, 0x6e, 0x6f, + 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x49, + 0x44, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, + 0x38, 0x0a, 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1c, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, + 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, + 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x61, 0x74, + 0x63, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x77, 0x61, 0x74, 0x63, 0x68, 0x22, + 0x4b, 0x0a, 0x0b, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1f, + 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, + 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x64, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x22, 0x1a, 0x0a, 0x08, + 0x49, 0x44, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x22, 0x27, 0x0a, 0x0c, 0x4e, 0x6f, 0x64, 0x65, + 0x49, 0x44, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, + 0x64, 0x22, 0x2c, 0x0a, 0x0e, 0x43, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x46, 0x69, 0x6c, + 0x74, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x42, + 0xb9, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, + 0x68, 0x2e, 0x76, 0x31, 0x42, 0x14, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, + 0x73, 0x68, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, + 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, + 0x3b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, + 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x56, + 0x31, 0xca, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, + 0xe2, 0x02, 0x18, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x53, 0x70, + 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( @@ -218,23 +1013,43 @@ func file_spacemesh_v1_activation_types_proto_rawDescGZIP() []byte { return file_spacemesh_v1_activation_types_proto_rawDescData } -var file_spacemesh_v1_activation_types_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_spacemesh_v1_activation_types_proto_msgTypes = make([]protoimpl.MessageInfo, 14) var file_spacemesh_v1_activation_types_proto_goTypes = []interface{}{ - (*GetRequest)(nil), // 0: spacemesh.v1.GetRequest - (*GetResponse)(nil), // 1: spacemesh.v1.GetResponse - (*HighestResponse)(nil), // 2: spacemesh.v1.HighestResponse - (*Activation)(nil), // 3: spacemesh.v1.Activation - (*MalfeasanceProof)(nil), // 4: spacemesh.v1.MalfeasanceProof + (*GetRequest)(nil), // 0: spacemesh.v1.GetRequest + (*GetResponse)(nil), // 1: spacemesh.v1.GetResponse + (*HighestResponse)(nil), // 2: spacemesh.v1.HighestResponse + (*ActivationStreamResponse)(nil), // 3: spacemesh.v1.ActivationStreamResponse + (*ActivationV1)(nil), // 4: spacemesh.v1.ActivationV1 + (*VRFPostIndex)(nil), // 5: spacemesh.v1.VRFPostIndex + (*PoetProof)(nil), // 6: spacemesh.v1.PoetProof + (*PostMeta)(nil), // 7: spacemesh.v1.PostMeta + (*Post)(nil), // 8: spacemesh.v1.Post + (*ActivationStreamRequest)(nil), // 9: spacemesh.v1.ActivationStreamRequest + (*EpochFilter)(nil), // 10: spacemesh.v1.EpochFilter + (*IDFilter)(nil), // 11: spacemesh.v1.IDFilter + (*NodeIDFilter)(nil), // 12: spacemesh.v1.NodeIDFilter + (*CoinbaseFilter)(nil), // 13: spacemesh.v1.CoinbaseFilter + (*Activation)(nil), // 14: spacemesh.v1.Activation + (*MalfeasanceProof)(nil), // 15: spacemesh.v1.MalfeasanceProof } var file_spacemesh_v1_activation_types_proto_depIdxs = []int32{ - 3, // 0: spacemesh.v1.GetResponse.atx:type_name -> spacemesh.v1.Activation - 4, // 1: spacemesh.v1.GetResponse.malfeasance_proof:type_name -> spacemesh.v1.MalfeasanceProof - 3, // 2: spacemesh.v1.HighestResponse.atx:type_name -> spacemesh.v1.Activation - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name + 14, // 0: spacemesh.v1.GetResponse.atx:type_name -> spacemesh.v1.Activation + 15, // 1: spacemesh.v1.GetResponse.malfeasance_proof:type_name -> spacemesh.v1.MalfeasanceProof + 14, // 2: spacemesh.v1.HighestResponse.atx:type_name -> spacemesh.v1.Activation + 4, // 3: spacemesh.v1.ActivationStreamResponse.v1:type_name -> spacemesh.v1.ActivationV1 + 8, // 4: spacemesh.v1.ActivationV1.initial_post:type_name -> spacemesh.v1.Post + 6, // 5: spacemesh.v1.ActivationV1.poet_proof:type_name -> spacemesh.v1.PoetProof + 8, // 6: spacemesh.v1.ActivationV1.post:type_name -> spacemesh.v1.Post + 5, // 7: spacemesh.v1.ActivationV1.vrf_post_index:type_name -> spacemesh.v1.VRFPostIndex + 10, // 8: spacemesh.v1.ActivationStreamRequest.epochs:type_name -> spacemesh.v1.EpochFilter + 11, // 9: spacemesh.v1.ActivationStreamRequest.id:type_name -> spacemesh.v1.IDFilter + 12, // 10: spacemesh.v1.ActivationStreamRequest.node_id:type_name -> spacemesh.v1.NodeIDFilter + 13, // 11: spacemesh.v1.ActivationStreamRequest.coinbase:type_name -> spacemesh.v1.CoinbaseFilter + 12, // [12:12] is the sub-list for method output_type + 12, // [12:12] is the sub-list for method input_type + 12, // [12:12] is the sub-list for extension type_name + 12, // [12:12] is the sub-list for extension extendee + 0, // [0:12] is the sub-list for field type_name } func init() { file_spacemesh_v1_activation_types_proto_init() } @@ -280,6 +1095,138 @@ func file_spacemesh_v1_activation_types_proto_init() { return nil } } + file_spacemesh_v1_activation_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivationStreamResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v1_activation_types_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivationV1); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v1_activation_types_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VRFPostIndex); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v1_activation_types_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PoetProof); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v1_activation_types_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PostMeta); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v1_activation_types_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Post); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v1_activation_types_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivationStreamRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v1_activation_types_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EpochFilter); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v1_activation_types_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IDFilter); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v1_activation_types_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NodeIDFilter); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v1_activation_types_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CoinbaseFilter); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } type x struct{} out := protoimpl.TypeBuilder{ @@ -287,7 +1234,7 @@ func file_spacemesh_v1_activation_types_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_spacemesh_v1_activation_types_proto_rawDesc, NumEnums: 0, - NumMessages: 3, + NumMessages: 14, NumExtensions: 0, NumServices: 0, }, diff --git a/spacemesh/v1/activation.proto b/spacemesh/v1/activation.proto index a7c6b753..a7dda45b 100644 --- a/spacemesh/v1/activation.proto +++ b/spacemesh/v1/activation.proto @@ -12,4 +12,6 @@ service ActivationService { // Highest returns the atx id with the highest tick count. rpc Highest(google.protobuf.Empty) returns (HighestResponse); + + rpc Stream(ActivationStreamRequest) returns (stream ActivationStreamResponse); } diff --git a/spacemesh/v1/activation_types.proto b/spacemesh/v1/activation_types.proto index fa072b87..a50ddd2f 100644 --- a/spacemesh/v1/activation_types.proto +++ b/spacemesh/v1/activation_types.proto @@ -15,4 +15,75 @@ message GetResponse { message HighestResponse { Activation atx = 1; +} + +message ActivationStreamResponse { + ActivationV1 v1 = 1; +} + +message ActivationV1 { + bytes id = 1; + bytes node_id = 2; + bytes signature = 3; + uint32 publish_epoch = 4; + uint64 sequence = 5; + bytes prev_atx = 6; + bytes positioning_atx = 7; + bytes committment_atx = 8; + Post initial_post = 9; + string coinbase = 10; + uint32 units = 11; + uint32 base_tick = 12; + uint32 ticks = 13; + PoetProof poet_proof = 14; + Post post = 15; + VRFPostIndex vrf_post_index = 16; +} + +message VRFPostIndex { + uint64 nonce = 1; +} + +message PoetProof { + repeated bytes proof_nodes = 1; + uint64 leaf = 2; +} + + +message PostMeta { + bytes challenge = 1; + uint64 labels = 2; +} + +message Post { + uint32 nonce = 1; + bytes indices = 2; + uint64 pow = 3; +} + +message ActivationStreamRequest { + EpochFilter epochs = 1; + IDFilter id = 2; + NodeIDFilter node_id = 3; + // CoinbaseFilter is not supported by database index and will result in sequential scan. + // Apply EpochFilter together with CoinbaseFilter for better performance. + CoinbaseFilter coinbase = 4; + bool watch = 5; +} + +message EpochFilter { + uint32 start_epoch = 1; + uint32 end_epoch = 2; +} + +message IDFilter { + bytes id = 1; +} + +message NodeIDFilter { + bytes node_id = 1; +} + +message CoinbaseFilter { + string coinbase = 1; } \ No newline at end of file From 9cea84c8888bac172aa533f3a4b21e384fa5a7fd Mon Sep 17 00:00:00 2001 From: Dmitry Date: Tue, 7 Nov 2023 13:18:56 +0100 Subject: [PATCH 02/20] flatten request --- .../go/spacemesh/v1/activation_types.pb.go | 365 +++--------------- spacemesh/v1/activation_types.proto | 28 +- 2 files changed, 58 insertions(+), 335 deletions(-) diff --git a/release/go/spacemesh/v1/activation_types.pb.go b/release/go/spacemesh/v1/activation_types.pb.go index d2057bb7..5f1bb924 100644 --- a/release/go/spacemesh/v1/activation_types.pb.go +++ b/release/go/spacemesh/v1/activation_types.pb.go @@ -608,13 +608,14 @@ type ActivationStreamRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Epochs *EpochFilter `protobuf:"bytes,1,opt,name=epochs,proto3" json:"epochs,omitempty"` - Id *IDFilter `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - NodeId *NodeIDFilter `protobuf:"bytes,3,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + StartEpoch uint32 `protobuf:"varint,1,opt,name=start_epoch,json=startEpoch,proto3" json:"start_epoch,omitempty"` + EndEpoch uint32 `protobuf:"varint,2,opt,name=end_epoch,json=endEpoch,proto3" json:"end_epoch,omitempty"` + Id []byte `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` + NodeId []byte `protobuf:"bytes,4,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` // CoinbaseFilter is not supported by database index and will result in sequential scan. // Apply EpochFilter together with CoinbaseFilter for better performance. - Coinbase *CoinbaseFilter `protobuf:"bytes,4,opt,name=coinbase,proto3" json:"coinbase,omitempty"` - Watch bool `protobuf:"varint,5,opt,name=watch,proto3" json:"watch,omitempty"` + Coinbase string `protobuf:"bytes,5,opt,name=coinbase,proto3" json:"coinbase,omitempty"` + Watch bool `protobuf:"varint,6,opt,name=watch,proto3" json:"watch,omitempty"` } func (x *ActivationStreamRequest) Reset() { @@ -649,235 +650,46 @@ func (*ActivationStreamRequest) Descriptor() ([]byte, []int) { return file_spacemesh_v1_activation_types_proto_rawDescGZIP(), []int{9} } -func (x *ActivationStreamRequest) GetEpochs() *EpochFilter { - if x != nil { - return x.Epochs - } - return nil -} - -func (x *ActivationStreamRequest) GetId() *IDFilter { - if x != nil { - return x.Id - } - return nil -} - -func (x *ActivationStreamRequest) GetNodeId() *NodeIDFilter { - if x != nil { - return x.NodeId - } - return nil -} - -func (x *ActivationStreamRequest) GetCoinbase() *CoinbaseFilter { - if x != nil { - return x.Coinbase - } - return nil -} - -func (x *ActivationStreamRequest) GetWatch() bool { - if x != nil { - return x.Watch - } - return false -} - -type EpochFilter struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StartEpoch uint32 `protobuf:"varint,1,opt,name=start_epoch,json=startEpoch,proto3" json:"start_epoch,omitempty"` - EndEpoch uint32 `protobuf:"varint,2,opt,name=end_epoch,json=endEpoch,proto3" json:"end_epoch,omitempty"` -} - -func (x *EpochFilter) Reset() { - *x = EpochFilter{} - if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_activation_types_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EpochFilter) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EpochFilter) ProtoMessage() {} - -func (x *EpochFilter) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_activation_types_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EpochFilter.ProtoReflect.Descriptor instead. -func (*EpochFilter) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_activation_types_proto_rawDescGZIP(), []int{10} -} - -func (x *EpochFilter) GetStartEpoch() uint32 { +func (x *ActivationStreamRequest) GetStartEpoch() uint32 { if x != nil { return x.StartEpoch } return 0 } -func (x *EpochFilter) GetEndEpoch() uint32 { +func (x *ActivationStreamRequest) GetEndEpoch() uint32 { if x != nil { return x.EndEpoch } return 0 } -type IDFilter struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *IDFilter) Reset() { - *x = IDFilter{} - if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_activation_types_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IDFilter) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IDFilter) ProtoMessage() {} - -func (x *IDFilter) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_activation_types_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IDFilter.ProtoReflect.Descriptor instead. -func (*IDFilter) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_activation_types_proto_rawDescGZIP(), []int{11} -} - -func (x *IDFilter) GetId() []byte { +func (x *ActivationStreamRequest) GetId() []byte { if x != nil { return x.Id } return nil } -type NodeIDFilter struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - NodeId []byte `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` -} - -func (x *NodeIDFilter) Reset() { - *x = NodeIDFilter{} - if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_activation_types_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NodeIDFilter) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NodeIDFilter) ProtoMessage() {} - -func (x *NodeIDFilter) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_activation_types_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NodeIDFilter.ProtoReflect.Descriptor instead. -func (*NodeIDFilter) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_activation_types_proto_rawDescGZIP(), []int{12} -} - -func (x *NodeIDFilter) GetNodeId() []byte { +func (x *ActivationStreamRequest) GetNodeId() []byte { if x != nil { return x.NodeId } return nil } -type CoinbaseFilter struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Coinbase string `protobuf:"bytes,1,opt,name=coinbase,proto3" json:"coinbase,omitempty"` -} - -func (x *CoinbaseFilter) Reset() { - *x = CoinbaseFilter{} - if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_activation_types_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CoinbaseFilter) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CoinbaseFilter) ProtoMessage() {} - -func (x *CoinbaseFilter) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_activation_types_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *ActivationStreamRequest) GetCoinbase() string { + if x != nil { + return x.Coinbase } - return mi.MessageOf(x) -} - -// Deprecated: Use CoinbaseFilter.ProtoReflect.Descriptor instead. -func (*CoinbaseFilter) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_activation_types_proto_rawDescGZIP(), []int{13} + return "" } -func (x *CoinbaseFilter) GetCoinbase() string { +func (x *ActivationStreamRequest) GetWatch() bool { if x != nil { - return x.Coinbase + return x.Watch } - return "" + return false } var File_spacemesh_v1_activation_types_proto protoreflect.FileDescriptor @@ -958,47 +770,30 @@ var file_spacemesh_v1_activation_types_proto_rawDesc = []byte{ 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x65, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x6f, 0x77, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, - 0x70, 0x6f, 0x77, 0x22, 0xf9, 0x01, 0x0a, 0x17, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, + 0x70, 0x6f, 0x77, 0x22, 0xb2, 0x01, 0x0a, 0x17, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x31, 0x0a, 0x06, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x45, - 0x70, 0x6f, 0x63, 0x68, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x06, 0x65, 0x70, 0x6f, 0x63, - 0x68, 0x73, 0x12, 0x26, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, - 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x44, - 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x33, 0x0a, 0x07, 0x6e, 0x6f, - 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x49, - 0x44, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, - 0x38, 0x0a, 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1c, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, - 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, - 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x61, 0x74, - 0x63, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x77, 0x61, 0x74, 0x63, 0x68, 0x22, - 0x4b, 0x0a, 0x0b, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1f, - 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, - 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x64, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x22, 0x1a, 0x0a, 0x08, - 0x49, 0x44, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x22, 0x27, 0x0a, 0x0c, 0x4e, 0x6f, 0x64, 0x65, - 0x49, 0x44, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, - 0x64, 0x22, 0x2c, 0x0a, 0x0e, 0x43, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x46, 0x69, 0x6c, - 0x74, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x42, - 0xb9, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, - 0x68, 0x2e, 0x76, 0x31, 0x42, 0x14, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, - 0x73, 0x68, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, - 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, - 0x3b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, - 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x56, - 0x31, 0xca, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, - 0xe2, 0x02, 0x18, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x53, 0x70, - 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, + 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x64, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, + 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, + 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x62, 0x61, + 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x62, 0x61, + 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x61, 0x74, 0x63, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x05, 0x77, 0x61, 0x74, 0x63, 0x68, 0x42, 0xb9, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, + 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x42, 0x14, 0x41, + 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x6f, 0x73, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, + 0x65, 0x73, 0x68, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x53, 0x70, + 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x53, 0x70, 0x61, + 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x53, 0x70, 0x61, 0x63, + 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, + 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1013,7 +808,7 @@ func file_spacemesh_v1_activation_types_proto_rawDescGZIP() []byte { return file_spacemesh_v1_activation_types_proto_rawDescData } -var file_spacemesh_v1_activation_types_proto_msgTypes = make([]protoimpl.MessageInfo, 14) +var file_spacemesh_v1_activation_types_proto_msgTypes = make([]protoimpl.MessageInfo, 10) var file_spacemesh_v1_activation_types_proto_goTypes = []interface{}{ (*GetRequest)(nil), // 0: spacemesh.v1.GetRequest (*GetResponse)(nil), // 1: spacemesh.v1.GetResponse @@ -1025,31 +820,23 @@ var file_spacemesh_v1_activation_types_proto_goTypes = []interface{}{ (*PostMeta)(nil), // 7: spacemesh.v1.PostMeta (*Post)(nil), // 8: spacemesh.v1.Post (*ActivationStreamRequest)(nil), // 9: spacemesh.v1.ActivationStreamRequest - (*EpochFilter)(nil), // 10: spacemesh.v1.EpochFilter - (*IDFilter)(nil), // 11: spacemesh.v1.IDFilter - (*NodeIDFilter)(nil), // 12: spacemesh.v1.NodeIDFilter - (*CoinbaseFilter)(nil), // 13: spacemesh.v1.CoinbaseFilter - (*Activation)(nil), // 14: spacemesh.v1.Activation - (*MalfeasanceProof)(nil), // 15: spacemesh.v1.MalfeasanceProof + (*Activation)(nil), // 10: spacemesh.v1.Activation + (*MalfeasanceProof)(nil), // 11: spacemesh.v1.MalfeasanceProof } var file_spacemesh_v1_activation_types_proto_depIdxs = []int32{ - 14, // 0: spacemesh.v1.GetResponse.atx:type_name -> spacemesh.v1.Activation - 15, // 1: spacemesh.v1.GetResponse.malfeasance_proof:type_name -> spacemesh.v1.MalfeasanceProof - 14, // 2: spacemesh.v1.HighestResponse.atx:type_name -> spacemesh.v1.Activation + 10, // 0: spacemesh.v1.GetResponse.atx:type_name -> spacemesh.v1.Activation + 11, // 1: spacemesh.v1.GetResponse.malfeasance_proof:type_name -> spacemesh.v1.MalfeasanceProof + 10, // 2: spacemesh.v1.HighestResponse.atx:type_name -> spacemesh.v1.Activation 4, // 3: spacemesh.v1.ActivationStreamResponse.v1:type_name -> spacemesh.v1.ActivationV1 8, // 4: spacemesh.v1.ActivationV1.initial_post:type_name -> spacemesh.v1.Post 6, // 5: spacemesh.v1.ActivationV1.poet_proof:type_name -> spacemesh.v1.PoetProof 8, // 6: spacemesh.v1.ActivationV1.post:type_name -> spacemesh.v1.Post 5, // 7: spacemesh.v1.ActivationV1.vrf_post_index:type_name -> spacemesh.v1.VRFPostIndex - 10, // 8: spacemesh.v1.ActivationStreamRequest.epochs:type_name -> spacemesh.v1.EpochFilter - 11, // 9: spacemesh.v1.ActivationStreamRequest.id:type_name -> spacemesh.v1.IDFilter - 12, // 10: spacemesh.v1.ActivationStreamRequest.node_id:type_name -> spacemesh.v1.NodeIDFilter - 13, // 11: spacemesh.v1.ActivationStreamRequest.coinbase:type_name -> spacemesh.v1.CoinbaseFilter - 12, // [12:12] is the sub-list for method output_type - 12, // [12:12] is the sub-list for method input_type - 12, // [12:12] is the sub-list for extension type_name - 12, // [12:12] is the sub-list for extension extendee - 0, // [0:12] is the sub-list for field type_name + 8, // [8:8] is the sub-list for method output_type + 8, // [8:8] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name } func init() { file_spacemesh_v1_activation_types_proto_init() } @@ -1179,54 +966,6 @@ func file_spacemesh_v1_activation_types_proto_init() { return nil } } - file_spacemesh_v1_activation_types_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EpochFilter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_spacemesh_v1_activation_types_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IDFilter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_spacemesh_v1_activation_types_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodeIDFilter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_spacemesh_v1_activation_types_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CoinbaseFilter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } } type x struct{} out := protoimpl.TypeBuilder{ @@ -1234,7 +973,7 @@ func file_spacemesh_v1_activation_types_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_spacemesh_v1_activation_types_proto_rawDesc, NumEnums: 0, - NumMessages: 14, + NumMessages: 10, NumExtensions: 0, NumServices: 0, }, diff --git a/spacemesh/v1/activation_types.proto b/spacemesh/v1/activation_types.proto index a50ddd2f..5cd75554 100644 --- a/spacemesh/v1/activation_types.proto +++ b/spacemesh/v1/activation_types.proto @@ -62,28 +62,12 @@ message Post { } message ActivationStreamRequest { - EpochFilter epochs = 1; - IDFilter id = 2; - NodeIDFilter node_id = 3; - // CoinbaseFilter is not supported by database index and will result in sequential scan. - // Apply EpochFilter together with CoinbaseFilter for better performance. - CoinbaseFilter coinbase = 4; - bool watch = 5; -} - -message EpochFilter { uint32 start_epoch = 1; uint32 end_epoch = 2; + bytes id = 3; + bytes node_id = 4; + // CoinbaseFilter is not supported by database index and will result in sequential scan. + // Apply EpochFilter together with CoinbaseFilter for better performance. + string coinbase = 5; + bool watch = 6; } - -message IDFilter { - bytes id = 1; -} - -message NodeIDFilter { - bytes node_id = 1; -} - -message CoinbaseFilter { - string coinbase = 1; -} \ No newline at end of file From 7ec08711115c0768e7a8a75298c46cb02014f3ed Mon Sep 17 00:00:00 2001 From: Dmitry Date: Thu, 9 Nov 2023 08:28:53 +0100 Subject: [PATCH 03/20] start v2 api --- release/go/spacemesh/v2/activation.pb.go | 1297 +++++++++++++++++ release/go/spacemesh/v2/activation.pb.gw.go | 426 ++++++ release/go/spacemesh/v2/activation_grpc.pb.go | 323 ++++ spacemesh/v2/activation.proto | 106 ++ 4 files changed, 2152 insertions(+) create mode 100644 release/go/spacemesh/v2/activation.pb.go create mode 100644 release/go/spacemesh/v2/activation.pb.gw.go create mode 100644 release/go/spacemesh/v2/activation_grpc.pb.go create mode 100644 spacemesh/v2/activation.proto diff --git a/release/go/spacemesh/v2/activation.pb.go b/release/go/spacemesh/v2/activation.pb.go new file mode 100644 index 00000000..e08efa71 --- /dev/null +++ b/release/go/spacemesh/v2/activation.pb.go @@ -0,0 +1,1297 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.31.0 +// protoc (unknown) +// source: spacemesh/v2/activation.proto + +package spacemeshv2 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type Activation struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Versioned: + // + // *Activation_V1 + Versioned isActivation_Versioned `protobuf_oneof:"versioned"` +} + +func (x *Activation) Reset() { + *x = Activation{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v2_activation_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Activation) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Activation) ProtoMessage() {} + +func (x *Activation) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v2_activation_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Activation.ProtoReflect.Descriptor instead. +func (*Activation) Descriptor() ([]byte, []int) { + return file_spacemesh_v2_activation_proto_rawDescGZIP(), []int{0} +} + +func (m *Activation) GetVersioned() isActivation_Versioned { + if m != nil { + return m.Versioned + } + return nil +} + +func (x *Activation) GetV1() *ActivationV1 { + if x, ok := x.GetVersioned().(*Activation_V1); ok { + return x.V1 + } + return nil +} + +type isActivation_Versioned interface { + isActivation_Versioned() +} + +type Activation_V1 struct { + V1 *ActivationV1 `protobuf:"bytes,1,opt,name=v1,proto3,oneof"` +} + +func (*Activation_V1) isActivation_Versioned() {} + +type ActivationV1 struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + NodeId []byte `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` + PublishEpoch uint32 `protobuf:"varint,4,opt,name=publish_epoch,json=publishEpoch,proto3" json:"publish_epoch,omitempty"` + Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` + PrevAtx []byte `protobuf:"bytes,6,opt,name=prev_atx,json=prevAtx,proto3" json:"prev_atx,omitempty"` + PositioningAtx []byte `protobuf:"bytes,7,opt,name=positioning_atx,json=positioningAtx,proto3" json:"positioning_atx,omitempty"` + CommittmentAtx []byte `protobuf:"bytes,8,opt,name=committment_atx,json=committmentAtx,proto3" json:"committment_atx,omitempty"` + InitialPost *Post `protobuf:"bytes,9,opt,name=initial_post,json=initialPost,proto3" json:"initial_post,omitempty"` + Coinbase string `protobuf:"bytes,10,opt,name=coinbase,proto3" json:"coinbase,omitempty"` + Units uint32 `protobuf:"varint,11,opt,name=units,proto3" json:"units,omitempty"` + BaseHeight uint32 `protobuf:"varint,12,opt,name=base_height,json=baseHeight,proto3" json:"base_height,omitempty"` + Ticks uint32 `protobuf:"varint,13,opt,name=ticks,proto3" json:"ticks,omitempty"` + PoetProof *PoetProof `protobuf:"bytes,14,opt,name=poet_proof,json=poetProof,proto3" json:"poet_proof,omitempty"` + Post *Post `protobuf:"bytes,15,opt,name=post,proto3" json:"post,omitempty"` + VrfPostIndex *VRFPostIndex `protobuf:"bytes,16,opt,name=vrf_post_index,json=vrfPostIndex,proto3" json:"vrf_post_index,omitempty"` +} + +func (x *ActivationV1) Reset() { + *x = ActivationV1{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v2_activation_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ActivationV1) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivationV1) ProtoMessage() {} + +func (x *ActivationV1) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v2_activation_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ActivationV1.ProtoReflect.Descriptor instead. +func (*ActivationV1) Descriptor() ([]byte, []int) { + return file_spacemesh_v2_activation_proto_rawDescGZIP(), []int{1} +} + +func (x *ActivationV1) GetId() []byte { + if x != nil { + return x.Id + } + return nil +} + +func (x *ActivationV1) GetNodeId() []byte { + if x != nil { + return x.NodeId + } + return nil +} + +func (x *ActivationV1) GetSignature() []byte { + if x != nil { + return x.Signature + } + return nil +} + +func (x *ActivationV1) GetPublishEpoch() uint32 { + if x != nil { + return x.PublishEpoch + } + return 0 +} + +func (x *ActivationV1) GetSequence() uint64 { + if x != nil { + return x.Sequence + } + return 0 +} + +func (x *ActivationV1) GetPrevAtx() []byte { + if x != nil { + return x.PrevAtx + } + return nil +} + +func (x *ActivationV1) GetPositioningAtx() []byte { + if x != nil { + return x.PositioningAtx + } + return nil +} + +func (x *ActivationV1) GetCommittmentAtx() []byte { + if x != nil { + return x.CommittmentAtx + } + return nil +} + +func (x *ActivationV1) GetInitialPost() *Post { + if x != nil { + return x.InitialPost + } + return nil +} + +func (x *ActivationV1) GetCoinbase() string { + if x != nil { + return x.Coinbase + } + return "" +} + +func (x *ActivationV1) GetUnits() uint32 { + if x != nil { + return x.Units + } + return 0 +} + +func (x *ActivationV1) GetBaseHeight() uint32 { + if x != nil { + return x.BaseHeight + } + return 0 +} + +func (x *ActivationV1) GetTicks() uint32 { + if x != nil { + return x.Ticks + } + return 0 +} + +func (x *ActivationV1) GetPoetProof() *PoetProof { + if x != nil { + return x.PoetProof + } + return nil +} + +func (x *ActivationV1) GetPost() *Post { + if x != nil { + return x.Post + } + return nil +} + +func (x *ActivationV1) GetVrfPostIndex() *VRFPostIndex { + if x != nil { + return x.VrfPostIndex + } + return nil +} + +type ActivationHeader struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Versioned: + // + // *ActivationHeader_V1 + Versioned isActivationHeader_Versioned `protobuf_oneof:"versioned"` +} + +func (x *ActivationHeader) Reset() { + *x = ActivationHeader{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v2_activation_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ActivationHeader) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivationHeader) ProtoMessage() {} + +func (x *ActivationHeader) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v2_activation_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ActivationHeader.ProtoReflect.Descriptor instead. +func (*ActivationHeader) Descriptor() ([]byte, []int) { + return file_spacemesh_v2_activation_proto_rawDescGZIP(), []int{2} +} + +func (m *ActivationHeader) GetVersioned() isActivationHeader_Versioned { + if m != nil { + return m.Versioned + } + return nil +} + +func (x *ActivationHeader) GetV1() *ActivationHeaderV1 { + if x, ok := x.GetVersioned().(*ActivationHeader_V1); ok { + return x.V1 + } + return nil +} + +type isActivationHeader_Versioned interface { + isActivationHeader_Versioned() +} + +type ActivationHeader_V1 struct { + V1 *ActivationHeaderV1 `protobuf:"bytes,1,opt,name=v1,proto3,oneof"` +} + +func (*ActivationHeader_V1) isActivationHeader_Versioned() {} + +type ActivationHeaderV1 struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + NodeId []byte `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + PublishEpoch uint32 `protobuf:"varint,3,opt,name=publish_epoch,json=publishEpoch,proto3" json:"publish_epoch,omitempty"` + Coinbase string `protobuf:"bytes,4,opt,name=coinbase,proto3" json:"coinbase,omitempty"` + Units uint32 `protobuf:"varint,5,opt,name=units,proto3" json:"units,omitempty"` + BaseHeight uint32 `protobuf:"varint,6,opt,name=base_height,json=baseHeight,proto3" json:"base_height,omitempty"` + Ticks uint32 `protobuf:"varint,7,opt,name=ticks,proto3" json:"ticks,omitempty"` +} + +func (x *ActivationHeaderV1) Reset() { + *x = ActivationHeaderV1{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v2_activation_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ActivationHeaderV1) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivationHeaderV1) ProtoMessage() {} + +func (x *ActivationHeaderV1) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v2_activation_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ActivationHeaderV1.ProtoReflect.Descriptor instead. +func (*ActivationHeaderV1) Descriptor() ([]byte, []int) { + return file_spacemesh_v2_activation_proto_rawDescGZIP(), []int{3} +} + +func (x *ActivationHeaderV1) GetId() []byte { + if x != nil { + return x.Id + } + return nil +} + +func (x *ActivationHeaderV1) GetNodeId() []byte { + if x != nil { + return x.NodeId + } + return nil +} + +func (x *ActivationHeaderV1) GetPublishEpoch() uint32 { + if x != nil { + return x.PublishEpoch + } + return 0 +} + +func (x *ActivationHeaderV1) GetCoinbase() string { + if x != nil { + return x.Coinbase + } + return "" +} + +func (x *ActivationHeaderV1) GetUnits() uint32 { + if x != nil { + return x.Units + } + return 0 +} + +func (x *ActivationHeaderV1) GetBaseHeight() uint32 { + if x != nil { + return x.BaseHeight + } + return 0 +} + +func (x *ActivationHeaderV1) GetTicks() uint32 { + if x != nil { + return x.Ticks + } + return 0 +} + +type VRFPostIndex struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` +} + +func (x *VRFPostIndex) Reset() { + *x = VRFPostIndex{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v2_activation_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VRFPostIndex) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VRFPostIndex) ProtoMessage() {} + +func (x *VRFPostIndex) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v2_activation_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VRFPostIndex.ProtoReflect.Descriptor instead. +func (*VRFPostIndex) Descriptor() ([]byte, []int) { + return file_spacemesh_v2_activation_proto_rawDescGZIP(), []int{4} +} + +func (x *VRFPostIndex) GetNonce() uint64 { + if x != nil { + return x.Nonce + } + return 0 +} + +type PoetProof struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProofNodes [][]byte `protobuf:"bytes,1,rep,name=proof_nodes,json=proofNodes,proto3" json:"proof_nodes,omitempty"` + Leaf uint64 `protobuf:"varint,2,opt,name=leaf,proto3" json:"leaf,omitempty"` +} + +func (x *PoetProof) Reset() { + *x = PoetProof{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v2_activation_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PoetProof) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PoetProof) ProtoMessage() {} + +func (x *PoetProof) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v2_activation_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PoetProof.ProtoReflect.Descriptor instead. +func (*PoetProof) Descriptor() ([]byte, []int) { + return file_spacemesh_v2_activation_proto_rawDescGZIP(), []int{5} +} + +func (x *PoetProof) GetProofNodes() [][]byte { + if x != nil { + return x.ProofNodes + } + return nil +} + +func (x *PoetProof) GetLeaf() uint64 { + if x != nil { + return x.Leaf + } + return 0 +} + +type PostMeta struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Challenge []byte `protobuf:"bytes,1,opt,name=challenge,proto3" json:"challenge,omitempty"` + Labels uint64 `protobuf:"varint,2,opt,name=labels,proto3" json:"labels,omitempty"` +} + +func (x *PostMeta) Reset() { + *x = PostMeta{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v2_activation_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PostMeta) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PostMeta) ProtoMessage() {} + +func (x *PostMeta) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v2_activation_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PostMeta.ProtoReflect.Descriptor instead. +func (*PostMeta) Descriptor() ([]byte, []int) { + return file_spacemesh_v2_activation_proto_rawDescGZIP(), []int{6} +} + +func (x *PostMeta) GetChallenge() []byte { + if x != nil { + return x.Challenge + } + return nil +} + +func (x *PostMeta) GetLabels() uint64 { + if x != nil { + return x.Labels + } + return 0 +} + +type Post struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Nonce uint32 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` + Indices []byte `protobuf:"bytes,2,opt,name=indices,proto3" json:"indices,omitempty"` + Pow uint64 `protobuf:"varint,3,opt,name=pow,proto3" json:"pow,omitempty"` +} + +func (x *Post) Reset() { + *x = Post{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v2_activation_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Post) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Post) ProtoMessage() {} + +func (x *Post) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v2_activation_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Post.ProtoReflect.Descriptor instead. +func (*Post) Descriptor() ([]byte, []int) { + return file_spacemesh_v2_activation_proto_rawDescGZIP(), []int{7} +} + +func (x *Post) GetNonce() uint32 { + if x != nil { + return x.Nonce + } + return 0 +} + +func (x *Post) GetIndices() []byte { + if x != nil { + return x.Indices + } + return nil +} + +func (x *Post) GetPow() uint64 { + if x != nil { + return x.Pow + } + return 0 +} + +type ActivationStreamRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StartEpoch uint32 `protobuf:"varint,1,opt,name=start_epoch,json=startEpoch,proto3" json:"start_epoch,omitempty"` + EndEpoch uint32 `protobuf:"varint,2,opt,name=end_epoch,json=endEpoch,proto3" json:"end_epoch,omitempty"` + Id []byte `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` + NodeId []byte `protobuf:"bytes,4,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + // CoinbaseFilter is not supported by database index and will result in sequential scan. + // Apply EpochFilter together with CoinbaseFilter for better performance. + Coinbase string `protobuf:"bytes,5,opt,name=coinbase,proto3" json:"coinbase,omitempty"` + Watch bool `protobuf:"varint,6,opt,name=watch,proto3" json:"watch,omitempty"` +} + +func (x *ActivationStreamRequest) Reset() { + *x = ActivationStreamRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v2_activation_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ActivationStreamRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivationStreamRequest) ProtoMessage() {} + +func (x *ActivationStreamRequest) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v2_activation_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ActivationStreamRequest.ProtoReflect.Descriptor instead. +func (*ActivationStreamRequest) Descriptor() ([]byte, []int) { + return file_spacemesh_v2_activation_proto_rawDescGZIP(), []int{8} +} + +func (x *ActivationStreamRequest) GetStartEpoch() uint32 { + if x != nil { + return x.StartEpoch + } + return 0 +} + +func (x *ActivationStreamRequest) GetEndEpoch() uint32 { + if x != nil { + return x.EndEpoch + } + return 0 +} + +func (x *ActivationStreamRequest) GetId() []byte { + if x != nil { + return x.Id + } + return nil +} + +func (x *ActivationStreamRequest) GetNodeId() []byte { + if x != nil { + return x.NodeId + } + return nil +} + +func (x *ActivationStreamRequest) GetCoinbase() string { + if x != nil { + return x.Coinbase + } + return "" +} + +func (x *ActivationStreamRequest) GetWatch() bool { + if x != nil { + return x.Watch + } + return false +} + +type ActivationRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StartEpoch uint32 `protobuf:"varint,1,opt,name=start_epoch,json=startEpoch,proto3" json:"start_epoch,omitempty"` + EndEpoch uint32 `protobuf:"varint,2,opt,name=end_epoch,json=endEpoch,proto3" json:"end_epoch,omitempty"` + Id []byte `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` + NodeId []byte `protobuf:"bytes,4,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + // CoinbaseFilter is not supported by database index and will result in sequential scan. + // Apply EpochFilter together with CoinbaseFilter for better performance. + Coinbase string `protobuf:"bytes,5,opt,name=coinbase,proto3" json:"coinbase,omitempty"` + Offset uint64 `protobuf:"varint,6,opt,name=offset,proto3" json:"offset,omitempty"` + Limit uint64 `protobuf:"varint,7,opt,name=limit,proto3" json:"limit,omitempty"` +} + +func (x *ActivationRequest) Reset() { + *x = ActivationRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v2_activation_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ActivationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivationRequest) ProtoMessage() {} + +func (x *ActivationRequest) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v2_activation_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ActivationRequest.ProtoReflect.Descriptor instead. +func (*ActivationRequest) Descriptor() ([]byte, []int) { + return file_spacemesh_v2_activation_proto_rawDescGZIP(), []int{9} +} + +func (x *ActivationRequest) GetStartEpoch() uint32 { + if x != nil { + return x.StartEpoch + } + return 0 +} + +func (x *ActivationRequest) GetEndEpoch() uint32 { + if x != nil { + return x.EndEpoch + } + return 0 +} + +func (x *ActivationRequest) GetId() []byte { + if x != nil { + return x.Id + } + return nil +} + +func (x *ActivationRequest) GetNodeId() []byte { + if x != nil { + return x.NodeId + } + return nil +} + +func (x *ActivationRequest) GetCoinbase() string { + if x != nil { + return x.Coinbase + } + return "" +} + +func (x *ActivationRequest) GetOffset() uint64 { + if x != nil { + return x.Offset + } + return 0 +} + +func (x *ActivationRequest) GetLimit() uint64 { + if x != nil { + return x.Limit + } + return 0 +} + +type ActivationList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Activations []*Activation `protobuf:"bytes,1,rep,name=activations,proto3" json:"activations,omitempty"` +} + +func (x *ActivationList) Reset() { + *x = ActivationList{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v2_activation_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ActivationList) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivationList) ProtoMessage() {} + +func (x *ActivationList) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v2_activation_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ActivationList.ProtoReflect.Descriptor instead. +func (*ActivationList) Descriptor() ([]byte, []int) { + return file_spacemesh_v2_activation_proto_rawDescGZIP(), []int{10} +} + +func (x *ActivationList) GetActivations() []*Activation { + if x != nil { + return x.Activations + } + return nil +} + +type ActivationHeaderList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Headers []*ActivationHeader `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` +} + +func (x *ActivationHeaderList) Reset() { + *x = ActivationHeaderList{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v2_activation_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ActivationHeaderList) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivationHeaderList) ProtoMessage() {} + +func (x *ActivationHeaderList) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v2_activation_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ActivationHeaderList.ProtoReflect.Descriptor instead. +func (*ActivationHeaderList) Descriptor() ([]byte, []int) { + return file_spacemesh_v2_activation_proto_rawDescGZIP(), []int{11} +} + +func (x *ActivationHeaderList) GetHeaders() []*ActivationHeader { + if x != nil { + return x.Headers + } + return nil +} + +var File_spacemesh_v2_activation_proto protoreflect.FileDescriptor + +var file_spacemesh_v2_activation_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x61, + 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x0c, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x22, 0x47, 0x0a, + 0x0a, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2c, 0x0a, 0x02, 0x76, + 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, + 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x56, 0x31, 0x48, 0x00, 0x52, 0x02, 0x76, 0x31, 0x42, 0x0b, 0x0a, 0x09, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x64, 0x22, 0xc5, 0x04, 0x0a, 0x0c, 0x41, 0x63, 0x74, 0x69, 0x76, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x31, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, + 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x23, + 0x0a, 0x0d, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x45, 0x70, + 0x6f, 0x63, 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, + 0x19, 0x0a, 0x08, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x61, 0x74, 0x78, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x07, 0x70, 0x72, 0x65, 0x76, 0x41, 0x74, 0x78, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x74, 0x78, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, + 0x41, 0x74, 0x78, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x6d, 0x65, + 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x78, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x63, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x78, 0x12, 0x35, 0x0a, 0x0c, + 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x18, 0x09, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, + 0x32, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x0b, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x50, + 0x6f, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x18, + 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x12, + 0x14, 0x0a, 0x05, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, + 0x75, 0x6e, 0x69, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x68, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x62, 0x61, 0x73, 0x65, + 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x63, 0x6b, 0x73, 0x18, + 0x0d, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x74, 0x69, 0x63, 0x6b, 0x73, 0x12, 0x36, 0x0a, 0x0a, + 0x70, 0x6f, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x17, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, + 0x50, 0x6f, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x09, 0x70, 0x6f, 0x65, 0x74, 0x50, + 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x26, 0x0a, 0x04, 0x70, 0x6f, 0x73, 0x74, 0x18, 0x0f, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, + 0x32, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x04, 0x70, 0x6f, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x0e, + 0x76, 0x72, 0x66, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x10, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, + 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x52, 0x46, 0x50, 0x6f, 0x73, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, + 0x52, 0x0c, 0x76, 0x72, 0x66, 0x50, 0x6f, 0x73, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x22, 0x53, + 0x0a, 0x10, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x12, 0x32, 0x0a, 0x02, 0x76, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, + 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, + 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x56, 0x31, + 0x48, 0x00, 0x52, 0x02, 0x76, 0x31, 0x42, 0x0b, 0x0a, 0x09, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x65, 0x64, 0x22, 0xcb, 0x01, 0x0a, 0x12, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x56, 0x31, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, + 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6e, 0x6f, 0x64, + 0x65, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x5f, 0x65, + 0x70, 0x6f, 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x70, 0x75, 0x62, 0x6c, + 0x69, 0x73, 0x68, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x69, 0x6e, + 0x62, 0x61, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x69, 0x6e, + 0x62, 0x61, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x05, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x61, + 0x73, 0x65, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x0a, 0x62, 0x61, 0x73, 0x65, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, + 0x69, 0x63, 0x6b, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x74, 0x69, 0x63, 0x6b, + 0x73, 0x22, 0x24, 0x0a, 0x0c, 0x56, 0x52, 0x46, 0x50, 0x6f, 0x73, 0x74, 0x49, 0x6e, 0x64, 0x65, + 0x78, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x22, 0x40, 0x0a, 0x09, 0x50, 0x6f, 0x65, 0x74, 0x50, + 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f, 0x6e, 0x6f, + 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x6f, 0x66, + 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x65, 0x61, 0x66, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x04, 0x6c, 0x65, 0x61, 0x66, 0x22, 0x40, 0x0a, 0x08, 0x50, 0x6f, 0x73, + 0x74, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, + 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, + 0x6e, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x22, 0x48, 0x0a, 0x04, 0x50, + 0x6f, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x69, 0x6e, 0x64, + 0x69, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x69, 0x6e, 0x64, 0x69, + 0x63, 0x65, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x6f, 0x77, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x03, 0x70, 0x6f, 0x77, 0x22, 0xb2, 0x01, 0x0a, 0x17, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x45, 0x70, 0x6f, + 0x63, 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x64, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x69, 0x6e, + 0x62, 0x61, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x69, 0x6e, + 0x62, 0x61, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x61, 0x74, 0x63, 0x68, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x05, 0x77, 0x61, 0x74, 0x63, 0x68, 0x22, 0xc4, 0x01, 0x0a, 0x11, 0x41, + 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x45, 0x70, 0x6f, 0x63, + 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x64, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x17, + 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x62, + 0x61, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x62, + 0x61, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, + 0x69, 0x6d, 0x69, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, + 0x74, 0x22, 0x4c, 0x0a, 0x0e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, + 0x69, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, + 0x50, 0x0a, 0x14, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x73, 0x32, 0xc0, 0x01, 0x0a, 0x17, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4b, 0x0a, + 0x06, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x25, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, + 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, + 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, + 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x30, 0x01, 0x12, 0x58, 0x0a, 0x0d, 0x53, 0x74, + 0x72, 0x65, 0x61, 0x6d, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x25, 0x2e, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, + 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x30, 0x01, 0x32, 0xae, 0x01, 0x0a, 0x11, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x45, 0x0a, 0x04, 0x4c, 0x69, + 0x73, 0x74, 0x12, 0x1f, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, + 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, + 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, + 0x74, 0x12, 0x52, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, + 0x12, 0x1f, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, + 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x22, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, + 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x4c, 0x69, 0x73, 0x74, 0x42, 0xb4, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x42, 0x0f, 0x41, 0x63, 0x74, 0x69, + 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, + 0x65, 0x73, 0x68, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, + 0x65, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, + 0x32, 0x3b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x76, 0x32, 0xa2, 0x02, 0x03, + 0x53, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, + 0x56, 0x32, 0xca, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, + 0x32, 0xe2, 0x02, 0x18, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x32, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x53, + 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_spacemesh_v2_activation_proto_rawDescOnce sync.Once + file_spacemesh_v2_activation_proto_rawDescData = file_spacemesh_v2_activation_proto_rawDesc +) + +func file_spacemesh_v2_activation_proto_rawDescGZIP() []byte { + file_spacemesh_v2_activation_proto_rawDescOnce.Do(func() { + file_spacemesh_v2_activation_proto_rawDescData = protoimpl.X.CompressGZIP(file_spacemesh_v2_activation_proto_rawDescData) + }) + return file_spacemesh_v2_activation_proto_rawDescData +} + +var file_spacemesh_v2_activation_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_spacemesh_v2_activation_proto_goTypes = []interface{}{ + (*Activation)(nil), // 0: spacemesh.v2.Activation + (*ActivationV1)(nil), // 1: spacemesh.v2.ActivationV1 + (*ActivationHeader)(nil), // 2: spacemesh.v2.ActivationHeader + (*ActivationHeaderV1)(nil), // 3: spacemesh.v2.ActivationHeaderV1 + (*VRFPostIndex)(nil), // 4: spacemesh.v2.VRFPostIndex + (*PoetProof)(nil), // 5: spacemesh.v2.PoetProof + (*PostMeta)(nil), // 6: spacemesh.v2.PostMeta + (*Post)(nil), // 7: spacemesh.v2.Post + (*ActivationStreamRequest)(nil), // 8: spacemesh.v2.ActivationStreamRequest + (*ActivationRequest)(nil), // 9: spacemesh.v2.ActivationRequest + (*ActivationList)(nil), // 10: spacemesh.v2.ActivationList + (*ActivationHeaderList)(nil), // 11: spacemesh.v2.ActivationHeaderList +} +var file_spacemesh_v2_activation_proto_depIdxs = []int32{ + 1, // 0: spacemesh.v2.Activation.v1:type_name -> spacemesh.v2.ActivationV1 + 7, // 1: spacemesh.v2.ActivationV1.initial_post:type_name -> spacemesh.v2.Post + 5, // 2: spacemesh.v2.ActivationV1.poet_proof:type_name -> spacemesh.v2.PoetProof + 7, // 3: spacemesh.v2.ActivationV1.post:type_name -> spacemesh.v2.Post + 4, // 4: spacemesh.v2.ActivationV1.vrf_post_index:type_name -> spacemesh.v2.VRFPostIndex + 3, // 5: spacemesh.v2.ActivationHeader.v1:type_name -> spacemesh.v2.ActivationHeaderV1 + 0, // 6: spacemesh.v2.ActivationList.activations:type_name -> spacemesh.v2.Activation + 2, // 7: spacemesh.v2.ActivationHeaderList.headers:type_name -> spacemesh.v2.ActivationHeader + 8, // 8: spacemesh.v2.ActivationStreamService.Stream:input_type -> spacemesh.v2.ActivationStreamRequest + 8, // 9: spacemesh.v2.ActivationStreamService.StreamHeaders:input_type -> spacemesh.v2.ActivationStreamRequest + 9, // 10: spacemesh.v2.ActivationService.List:input_type -> spacemesh.v2.ActivationRequest + 9, // 11: spacemesh.v2.ActivationService.ListHeaders:input_type -> spacemesh.v2.ActivationRequest + 0, // 12: spacemesh.v2.ActivationStreamService.Stream:output_type -> spacemesh.v2.Activation + 2, // 13: spacemesh.v2.ActivationStreamService.StreamHeaders:output_type -> spacemesh.v2.ActivationHeader + 10, // 14: spacemesh.v2.ActivationService.List:output_type -> spacemesh.v2.ActivationList + 11, // 15: spacemesh.v2.ActivationService.ListHeaders:output_type -> spacemesh.v2.ActivationHeaderList + 12, // [12:16] is the sub-list for method output_type + 8, // [8:12] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name +} + +func init() { file_spacemesh_v2_activation_proto_init() } +func file_spacemesh_v2_activation_proto_init() { + if File_spacemesh_v2_activation_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_spacemesh_v2_activation_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Activation); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v2_activation_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivationV1); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v2_activation_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivationHeader); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v2_activation_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivationHeaderV1); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v2_activation_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VRFPostIndex); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v2_activation_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PoetProof); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v2_activation_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PostMeta); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v2_activation_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Post); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v2_activation_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivationStreamRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v2_activation_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivationRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v2_activation_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivationList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v2_activation_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivationHeaderList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_spacemesh_v2_activation_proto_msgTypes[0].OneofWrappers = []interface{}{ + (*Activation_V1)(nil), + } + file_spacemesh_v2_activation_proto_msgTypes[2].OneofWrappers = []interface{}{ + (*ActivationHeader_V1)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_spacemesh_v2_activation_proto_rawDesc, + NumEnums: 0, + NumMessages: 12, + NumExtensions: 0, + NumServices: 2, + }, + GoTypes: file_spacemesh_v2_activation_proto_goTypes, + DependencyIndexes: file_spacemesh_v2_activation_proto_depIdxs, + MessageInfos: file_spacemesh_v2_activation_proto_msgTypes, + }.Build() + File_spacemesh_v2_activation_proto = out.File + file_spacemesh_v2_activation_proto_rawDesc = nil + file_spacemesh_v2_activation_proto_goTypes = nil + file_spacemesh_v2_activation_proto_depIdxs = nil +} diff --git a/release/go/spacemesh/v2/activation.pb.gw.go b/release/go/spacemesh/v2/activation.pb.gw.go new file mode 100644 index 00000000..b8e84d41 --- /dev/null +++ b/release/go/spacemesh/v2/activation.pb.gw.go @@ -0,0 +1,426 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: spacemesh/v2/activation.proto + +/* +Package spacemeshv2 is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package spacemeshv2 + +import ( + "context" + "io" + "net/http" + + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join + +func request_ActivationStreamService_Stream_0(ctx context.Context, marshaler runtime.Marshaler, client ActivationStreamServiceClient, req *http.Request, pathParams map[string]string) (ActivationStreamService_StreamClient, runtime.ServerMetadata, error) { + var protoReq ActivationStreamRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + stream, err := client.Stream(ctx, &protoReq) + if err != nil { + return nil, metadata, err + } + header, err := stream.Header() + if err != nil { + return nil, metadata, err + } + metadata.HeaderMD = header + return stream, metadata, nil + +} + +func request_ActivationStreamService_StreamHeaders_0(ctx context.Context, marshaler runtime.Marshaler, client ActivationStreamServiceClient, req *http.Request, pathParams map[string]string) (ActivationStreamService_StreamHeadersClient, runtime.ServerMetadata, error) { + var protoReq ActivationStreamRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + stream, err := client.StreamHeaders(ctx, &protoReq) + if err != nil { + return nil, metadata, err + } + header, err := stream.Header() + if err != nil { + return nil, metadata, err + } + metadata.HeaderMD = header + return stream, metadata, nil + +} + +func request_ActivationService_List_0(ctx context.Context, marshaler runtime.Marshaler, client ActivationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ActivationRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.List(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_ActivationService_List_0(ctx context.Context, marshaler runtime.Marshaler, server ActivationServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ActivationRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.List(ctx, &protoReq) + return msg, metadata, err + +} + +func request_ActivationService_ListHeaders_0(ctx context.Context, marshaler runtime.Marshaler, client ActivationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ActivationRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListHeaders(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_ActivationService_ListHeaders_0(ctx context.Context, marshaler runtime.Marshaler, server ActivationServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ActivationRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListHeaders(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterActivationStreamServiceHandlerServer registers the http handlers for service ActivationStreamService to "mux". +// UnaryRPC :call ActivationStreamServiceServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterActivationStreamServiceHandlerFromEndpoint instead. +func RegisterActivationStreamServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ActivationStreamServiceServer) error { + + mux.Handle("POST", pattern_ActivationStreamService_Stream_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") + _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + }) + + mux.Handle("POST", pattern_ActivationStreamService_StreamHeaders_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") + _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + }) + + return nil +} + +// RegisterActivationServiceHandlerServer registers the http handlers for service ActivationService to "mux". +// UnaryRPC :call ActivationServiceServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterActivationServiceHandlerFromEndpoint instead. +func RegisterActivationServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ActivationServiceServer) error { + + mux.Handle("POST", pattern_ActivationService_List_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/spacemesh.v2.ActivationService/List", runtime.WithHTTPPathPattern("/spacemesh.v2.ActivationService/List")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_ActivationService_List_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ActivationService_List_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ActivationService_ListHeaders_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/spacemesh.v2.ActivationService/ListHeaders", runtime.WithHTTPPathPattern("/spacemesh.v2.ActivationService/ListHeaders")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_ActivationService_ListHeaders_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ActivationService_ListHeaders_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterActivationStreamServiceHandlerFromEndpoint is same as RegisterActivationStreamServiceHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterActivationStreamServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.DialContext(ctx, endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterActivationStreamServiceHandler(ctx, mux, conn) +} + +// RegisterActivationStreamServiceHandler registers the http handlers for service ActivationStreamService to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterActivationStreamServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterActivationStreamServiceHandlerClient(ctx, mux, NewActivationStreamServiceClient(conn)) +} + +// RegisterActivationStreamServiceHandlerClient registers the http handlers for service ActivationStreamService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ActivationStreamServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ActivationStreamServiceClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "ActivationStreamServiceClient" to call the correct interceptors. +func RegisterActivationStreamServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ActivationStreamServiceClient) error { + + mux.Handle("POST", pattern_ActivationStreamService_Stream_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spacemesh.v2.ActivationStreamService/Stream", runtime.WithHTTPPathPattern("/spacemesh.v2.ActivationStreamService/Stream")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ActivationStreamService_Stream_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ActivationStreamService_Stream_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ActivationStreamService_StreamHeaders_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spacemesh.v2.ActivationStreamService/StreamHeaders", runtime.WithHTTPPathPattern("/spacemesh.v2.ActivationStreamService/StreamHeaders")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ActivationStreamService_StreamHeaders_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ActivationStreamService_StreamHeaders_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_ActivationStreamService_Stream_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"spacemesh.v2.ActivationStreamService", "Stream"}, "")) + + pattern_ActivationStreamService_StreamHeaders_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"spacemesh.v2.ActivationStreamService", "StreamHeaders"}, "")) +) + +var ( + forward_ActivationStreamService_Stream_0 = runtime.ForwardResponseStream + + forward_ActivationStreamService_StreamHeaders_0 = runtime.ForwardResponseStream +) + +// RegisterActivationServiceHandlerFromEndpoint is same as RegisterActivationServiceHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterActivationServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.DialContext(ctx, endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterActivationServiceHandler(ctx, mux, conn) +} + +// RegisterActivationServiceHandler registers the http handlers for service ActivationService to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterActivationServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterActivationServiceHandlerClient(ctx, mux, NewActivationServiceClient(conn)) +} + +// RegisterActivationServiceHandlerClient registers the http handlers for service ActivationService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ActivationServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ActivationServiceClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "ActivationServiceClient" to call the correct interceptors. +func RegisterActivationServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ActivationServiceClient) error { + + mux.Handle("POST", pattern_ActivationService_List_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spacemesh.v2.ActivationService/List", runtime.WithHTTPPathPattern("/spacemesh.v2.ActivationService/List")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ActivationService_List_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ActivationService_List_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ActivationService_ListHeaders_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spacemesh.v2.ActivationService/ListHeaders", runtime.WithHTTPPathPattern("/spacemesh.v2.ActivationService/ListHeaders")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ActivationService_ListHeaders_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ActivationService_ListHeaders_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_ActivationService_List_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"spacemesh.v2.ActivationService", "List"}, "")) + + pattern_ActivationService_ListHeaders_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"spacemesh.v2.ActivationService", "ListHeaders"}, "")) +) + +var ( + forward_ActivationService_List_0 = runtime.ForwardResponseMessage + + forward_ActivationService_ListHeaders_0 = runtime.ForwardResponseMessage +) diff --git a/release/go/spacemesh/v2/activation_grpc.pb.go b/release/go/spacemesh/v2/activation_grpc.pb.go new file mode 100644 index 00000000..c1ce7fb2 --- /dev/null +++ b/release/go/spacemesh/v2/activation_grpc.pb.go @@ -0,0 +1,323 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: spacemesh/v2/activation.proto + +package spacemeshv2 + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + ActivationStreamService_Stream_FullMethodName = "/spacemesh.v2.ActivationStreamService/Stream" + ActivationStreamService_StreamHeaders_FullMethodName = "/spacemesh.v2.ActivationStreamService/StreamHeaders" +) + +// ActivationStreamServiceClient is the client API for ActivationStreamService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type ActivationStreamServiceClient interface { + Stream(ctx context.Context, in *ActivationStreamRequest, opts ...grpc.CallOption) (ActivationStreamService_StreamClient, error) + StreamHeaders(ctx context.Context, in *ActivationStreamRequest, opts ...grpc.CallOption) (ActivationStreamService_StreamHeadersClient, error) +} + +type activationStreamServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewActivationStreamServiceClient(cc grpc.ClientConnInterface) ActivationStreamServiceClient { + return &activationStreamServiceClient{cc} +} + +func (c *activationStreamServiceClient) Stream(ctx context.Context, in *ActivationStreamRequest, opts ...grpc.CallOption) (ActivationStreamService_StreamClient, error) { + stream, err := c.cc.NewStream(ctx, &ActivationStreamService_ServiceDesc.Streams[0], ActivationStreamService_Stream_FullMethodName, opts...) + if err != nil { + return nil, err + } + x := &activationStreamServiceStreamClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ActivationStreamService_StreamClient interface { + Recv() (*Activation, error) + grpc.ClientStream +} + +type activationStreamServiceStreamClient struct { + grpc.ClientStream +} + +func (x *activationStreamServiceStreamClient) Recv() (*Activation, error) { + m := new(Activation) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *activationStreamServiceClient) StreamHeaders(ctx context.Context, in *ActivationStreamRequest, opts ...grpc.CallOption) (ActivationStreamService_StreamHeadersClient, error) { + stream, err := c.cc.NewStream(ctx, &ActivationStreamService_ServiceDesc.Streams[1], ActivationStreamService_StreamHeaders_FullMethodName, opts...) + if err != nil { + return nil, err + } + x := &activationStreamServiceStreamHeadersClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ActivationStreamService_StreamHeadersClient interface { + Recv() (*ActivationHeader, error) + grpc.ClientStream +} + +type activationStreamServiceStreamHeadersClient struct { + grpc.ClientStream +} + +func (x *activationStreamServiceStreamHeadersClient) Recv() (*ActivationHeader, error) { + m := new(ActivationHeader) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// ActivationStreamServiceServer is the server API for ActivationStreamService service. +// All implementations should embed UnimplementedActivationStreamServiceServer +// for forward compatibility +type ActivationStreamServiceServer interface { + Stream(*ActivationStreamRequest, ActivationStreamService_StreamServer) error + StreamHeaders(*ActivationStreamRequest, ActivationStreamService_StreamHeadersServer) error +} + +// UnimplementedActivationStreamServiceServer should be embedded to have forward compatible implementations. +type UnimplementedActivationStreamServiceServer struct { +} + +func (UnimplementedActivationStreamServiceServer) Stream(*ActivationStreamRequest, ActivationStreamService_StreamServer) error { + return status.Errorf(codes.Unimplemented, "method Stream not implemented") +} +func (UnimplementedActivationStreamServiceServer) StreamHeaders(*ActivationStreamRequest, ActivationStreamService_StreamHeadersServer) error { + return status.Errorf(codes.Unimplemented, "method StreamHeaders not implemented") +} + +// UnsafeActivationStreamServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ActivationStreamServiceServer will +// result in compilation errors. +type UnsafeActivationStreamServiceServer interface { + mustEmbedUnimplementedActivationStreamServiceServer() +} + +func RegisterActivationStreamServiceServer(s grpc.ServiceRegistrar, srv ActivationStreamServiceServer) { + s.RegisterService(&ActivationStreamService_ServiceDesc, srv) +} + +func _ActivationStreamService_Stream_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ActivationStreamRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ActivationStreamServiceServer).Stream(m, &activationStreamServiceStreamServer{stream}) +} + +type ActivationStreamService_StreamServer interface { + Send(*Activation) error + grpc.ServerStream +} + +type activationStreamServiceStreamServer struct { + grpc.ServerStream +} + +func (x *activationStreamServiceStreamServer) Send(m *Activation) error { + return x.ServerStream.SendMsg(m) +} + +func _ActivationStreamService_StreamHeaders_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ActivationStreamRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ActivationStreamServiceServer).StreamHeaders(m, &activationStreamServiceStreamHeadersServer{stream}) +} + +type ActivationStreamService_StreamHeadersServer interface { + Send(*ActivationHeader) error + grpc.ServerStream +} + +type activationStreamServiceStreamHeadersServer struct { + grpc.ServerStream +} + +func (x *activationStreamServiceStreamHeadersServer) Send(m *ActivationHeader) error { + return x.ServerStream.SendMsg(m) +} + +// ActivationStreamService_ServiceDesc is the grpc.ServiceDesc for ActivationStreamService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var ActivationStreamService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "spacemesh.v2.ActivationStreamService", + HandlerType: (*ActivationStreamServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "Stream", + Handler: _ActivationStreamService_Stream_Handler, + ServerStreams: true, + }, + { + StreamName: "StreamHeaders", + Handler: _ActivationStreamService_StreamHeaders_Handler, + ServerStreams: true, + }, + }, + Metadata: "spacemesh/v2/activation.proto", +} + +const ( + ActivationService_List_FullMethodName = "/spacemesh.v2.ActivationService/List" + ActivationService_ListHeaders_FullMethodName = "/spacemesh.v2.ActivationService/ListHeaders" +) + +// ActivationServiceClient is the client API for ActivationService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type ActivationServiceClient interface { + List(ctx context.Context, in *ActivationRequest, opts ...grpc.CallOption) (*ActivationList, error) + ListHeaders(ctx context.Context, in *ActivationRequest, opts ...grpc.CallOption) (*ActivationHeaderList, error) +} + +type activationServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewActivationServiceClient(cc grpc.ClientConnInterface) ActivationServiceClient { + return &activationServiceClient{cc} +} + +func (c *activationServiceClient) List(ctx context.Context, in *ActivationRequest, opts ...grpc.CallOption) (*ActivationList, error) { + out := new(ActivationList) + err := c.cc.Invoke(ctx, ActivationService_List_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *activationServiceClient) ListHeaders(ctx context.Context, in *ActivationRequest, opts ...grpc.CallOption) (*ActivationHeaderList, error) { + out := new(ActivationHeaderList) + err := c.cc.Invoke(ctx, ActivationService_ListHeaders_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ActivationServiceServer is the server API for ActivationService service. +// All implementations should embed UnimplementedActivationServiceServer +// for forward compatibility +type ActivationServiceServer interface { + List(context.Context, *ActivationRequest) (*ActivationList, error) + ListHeaders(context.Context, *ActivationRequest) (*ActivationHeaderList, error) +} + +// UnimplementedActivationServiceServer should be embedded to have forward compatible implementations. +type UnimplementedActivationServiceServer struct { +} + +func (UnimplementedActivationServiceServer) List(context.Context, *ActivationRequest) (*ActivationList, error) { + return nil, status.Errorf(codes.Unimplemented, "method List not implemented") +} +func (UnimplementedActivationServiceServer) ListHeaders(context.Context, *ActivationRequest) (*ActivationHeaderList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListHeaders not implemented") +} + +// UnsafeActivationServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ActivationServiceServer will +// result in compilation errors. +type UnsafeActivationServiceServer interface { + mustEmbedUnimplementedActivationServiceServer() +} + +func RegisterActivationServiceServer(s grpc.ServiceRegistrar, srv ActivationServiceServer) { + s.RegisterService(&ActivationService_ServiceDesc, srv) +} + +func _ActivationService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ActivationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ActivationServiceServer).List(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ActivationService_List_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ActivationServiceServer).List(ctx, req.(*ActivationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ActivationService_ListHeaders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ActivationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ActivationServiceServer).ListHeaders(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ActivationService_ListHeaders_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ActivationServiceServer).ListHeaders(ctx, req.(*ActivationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// ActivationService_ServiceDesc is the grpc.ServiceDesc for ActivationService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var ActivationService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "spacemesh.v2.ActivationService", + HandlerType: (*ActivationServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "List", + Handler: _ActivationService_List_Handler, + }, + { + MethodName: "ListHeaders", + Handler: _ActivationService_ListHeaders_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "spacemesh/v2/activation.proto", +} diff --git a/spacemesh/v2/activation.proto b/spacemesh/v2/activation.proto new file mode 100644 index 00000000..fad478b0 --- /dev/null +++ b/spacemesh/v2/activation.proto @@ -0,0 +1,106 @@ +syntax = "proto3"; + +package spacemesh.v2; + +message Activation { + oneof versioned { + ActivationV1 v1 = 1; + } +} + +message ActivationV1 { + bytes id = 1; + bytes node_id = 2; + bytes signature = 3; + uint32 publish_epoch = 4; + uint64 sequence = 5; + bytes prev_atx = 6; + bytes positioning_atx = 7; + bytes committment_atx = 8; + Post initial_post = 9; + string coinbase = 10; + uint32 units = 11; + uint32 base_height = 12; + uint32 ticks = 13; + PoetProof poet_proof = 14; + Post post = 15; + VRFPostIndex vrf_post_index = 16; +} + +message ActivationHeader { + oneof versioned { + ActivationHeaderV1 v1 = 1; + } +} + +message ActivationHeaderV1 { + bytes id = 1; + bytes node_id = 2; + uint32 publish_epoch = 3; + string coinbase = 4; + uint32 units = 5; + uint32 base_height = 6; + uint32 ticks = 7; +} + +message VRFPostIndex { + uint64 nonce = 1; +} + +message PoetProof { + repeated bytes proof_nodes = 1; + uint64 leaf = 2; +} + +message PostMeta { + bytes challenge = 1; + uint64 labels = 2; +} + +message Post { + uint32 nonce = 1; + bytes indices = 2; + uint64 pow = 3; +} + +message ActivationStreamRequest { + uint32 start_epoch = 1; + uint32 end_epoch = 2; + bytes id = 3; + bytes node_id = 4; + // CoinbaseFilter is not supported by database index and will result in sequential scan. + // Apply EpochFilter together with CoinbaseFilter for better performance. + string coinbase = 5; + bool watch = 6; +} + + +service ActivationStreamService { + rpc Stream(ActivationStreamRequest) returns (stream Activation); + rpc StreamHeaders(ActivationStreamRequest) returns (stream ActivationHeader); +} + +message ActivationRequest { + uint32 start_epoch = 1; + uint32 end_epoch = 2; + bytes id = 3; + bytes node_id = 4; + // CoinbaseFilter is not supported by database index and will result in sequential scan. + // Apply EpochFilter together with CoinbaseFilter for better performance. + string coinbase = 5; + uint64 offset = 6; + uint64 limit = 7; +} + +message ActivationList { + repeated Activation activations = 1; +} + +message ActivationHeaderList { + repeated ActivationHeader headers = 1; +} + +service ActivationService { + rpc List(ActivationRequest) returns (ActivationList); + rpc ListHeaders(ActivationRequest) returns (ActivationHeaderList); +} \ No newline at end of file From d9b5d4ad4b20baba127ed6724417f7e2e4b49e08 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Thu, 9 Nov 2023 10:42:11 +0100 Subject: [PATCH 04/20] drop from v1 --- release/go/spacemesh/v1/activation.pb.go | 53 +- release/go/spacemesh/v1/activation.pb.gw.go | 58 -- release/go/spacemesh/v1/activation_grpc.pb.go | 67 +- .../go/spacemesh/v1/activation_types.pb.go | 742 +----------------- spacemesh/v1/activation.proto | 2 - spacemesh/v1/activation_types.proto | 55 -- 6 files changed, 51 insertions(+), 926 deletions(-) diff --git a/release/go/spacemesh/v1/activation.pb.go b/release/go/spacemesh/v1/activation.pb.go index b82d1285..9f08b498 100644 --- a/release/go/spacemesh/v1/activation.pb.go +++ b/release/go/spacemesh/v1/activation.pb.go @@ -30,7 +30,7 @@ var file_spacemesh_v1_activation_proto_rawDesc = []byte{ 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, - 0xec, 0x01, 0x0a, 0x11, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, + 0x91, 0x01, 0x0a, 0x11, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3a, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x18, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, @@ -39,43 +39,34 @@ var file_spacemesh_v1_activation_proto_rawDesc = []byte{ 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x69, 0x67, 0x68, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x06, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x25, 0x2e, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, - 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, - 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, - 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x42, 0xb4, - 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, - 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x6f, 0x73, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x6d, 0x65, 0x73, 0x68, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x53, - 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x53, 0x70, - 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x53, 0x70, 0x61, - 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, - 0x68, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6e, 0x73, 0x65, 0x42, 0xb4, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, + 0x68, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, + 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, 0x3b, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x58, + 0x58, 0xaa, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x56, 0x31, + 0xca, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0xe2, + 0x02, 0x18, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x53, 0x70, 0x61, + 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var file_spacemesh_v1_activation_proto_goTypes = []interface{}{ - (*GetRequest)(nil), // 0: spacemesh.v1.GetRequest - (*emptypb.Empty)(nil), // 1: google.protobuf.Empty - (*ActivationStreamRequest)(nil), // 2: spacemesh.v1.ActivationStreamRequest - (*GetResponse)(nil), // 3: spacemesh.v1.GetResponse - (*HighestResponse)(nil), // 4: spacemesh.v1.HighestResponse - (*ActivationStreamResponse)(nil), // 5: spacemesh.v1.ActivationStreamResponse + (*GetRequest)(nil), // 0: spacemesh.v1.GetRequest + (*emptypb.Empty)(nil), // 1: google.protobuf.Empty + (*GetResponse)(nil), // 2: spacemesh.v1.GetResponse + (*HighestResponse)(nil), // 3: spacemesh.v1.HighestResponse } var file_spacemesh_v1_activation_proto_depIdxs = []int32{ 0, // 0: spacemesh.v1.ActivationService.Get:input_type -> spacemesh.v1.GetRequest 1, // 1: spacemesh.v1.ActivationService.Highest:input_type -> google.protobuf.Empty - 2, // 2: spacemesh.v1.ActivationService.Stream:input_type -> spacemesh.v1.ActivationStreamRequest - 3, // 3: spacemesh.v1.ActivationService.Get:output_type -> spacemesh.v1.GetResponse - 4, // 4: spacemesh.v1.ActivationService.Highest:output_type -> spacemesh.v1.HighestResponse - 5, // 5: spacemesh.v1.ActivationService.Stream:output_type -> spacemesh.v1.ActivationStreamResponse - 3, // [3:6] is the sub-list for method output_type - 0, // [0:3] is the sub-list for method input_type + 2, // 2: spacemesh.v1.ActivationService.Get:output_type -> spacemesh.v1.GetResponse + 3, // 3: spacemesh.v1.ActivationService.Highest:output_type -> spacemesh.v1.HighestResponse + 2, // [2:4] is the sub-list for method output_type + 0, // [0:2] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for field type_name diff --git a/release/go/spacemesh/v1/activation.pb.gw.go b/release/go/spacemesh/v1/activation.pb.gw.go index 6a7be2ec..6d2ad680 100644 --- a/release/go/spacemesh/v1/activation.pb.gw.go +++ b/release/go/spacemesh/v1/activation.pb.gw.go @@ -100,31 +100,6 @@ func local_request_ActivationService_Highest_0(ctx context.Context, marshaler ru } -func request_ActivationService_Stream_0(ctx context.Context, marshaler runtime.Marshaler, client ActivationServiceClient, req *http.Request, pathParams map[string]string) (ActivationService_StreamClient, runtime.ServerMetadata, error) { - var protoReq ActivationStreamRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - stream, err := client.Stream(ctx, &protoReq) - if err != nil { - return nil, metadata, err - } - header, err := stream.Header() - if err != nil { - return nil, metadata, err - } - metadata.HeaderMD = header - return stream, metadata, nil - -} - // RegisterActivationServiceHandlerServer registers the http handlers for service ActivationService to "mux". // UnaryRPC :call ActivationServiceServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -181,13 +156,6 @@ func RegisterActivationServiceHandlerServer(ctx context.Context, mux *runtime.Se }) - mux.Handle("POST", pattern_ActivationService_Stream_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") - _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - }) - return nil } @@ -273,28 +241,6 @@ func RegisterActivationServiceHandlerClient(ctx context.Context, mux *runtime.Se }) - mux.Handle("POST", pattern_ActivationService_Stream_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) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spacemesh.v1.ActivationService/Stream", runtime.WithHTTPPathPattern("/spacemesh.v1.ActivationService/Stream")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ActivationService_Stream_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_ActivationService_Stream_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) - - }) - return nil } @@ -302,14 +248,10 @@ var ( pattern_ActivationService_Get_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"spacemesh.v1.ActivationService", "Get"}, "")) pattern_ActivationService_Highest_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"spacemesh.v1.ActivationService", "Highest"}, "")) - - pattern_ActivationService_Stream_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"spacemesh.v1.ActivationService", "Stream"}, "")) ) var ( forward_ActivationService_Get_0 = runtime.ForwardResponseMessage forward_ActivationService_Highest_0 = runtime.ForwardResponseMessage - - forward_ActivationService_Stream_0 = runtime.ForwardResponseStream ) diff --git a/release/go/spacemesh/v1/activation_grpc.pb.go b/release/go/spacemesh/v1/activation_grpc.pb.go index 01a0c66a..8dcbf3bc 100644 --- a/release/go/spacemesh/v1/activation_grpc.pb.go +++ b/release/go/spacemesh/v1/activation_grpc.pb.go @@ -22,7 +22,6 @@ const _ = grpc.SupportPackageIsVersion7 const ( ActivationService_Get_FullMethodName = "/spacemesh.v1.ActivationService/Get" ActivationService_Highest_FullMethodName = "/spacemesh.v1.ActivationService/Highest" - ActivationService_Stream_FullMethodName = "/spacemesh.v1.ActivationService/Stream" ) // ActivationServiceClient is the client API for ActivationService service. @@ -33,7 +32,6 @@ type ActivationServiceClient interface { Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) // Highest returns the atx id with the highest tick count. Highest(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HighestResponse, error) - Stream(ctx context.Context, in *ActivationStreamRequest, opts ...grpc.CallOption) (ActivationService_StreamClient, error) } type activationServiceClient struct { @@ -62,38 +60,6 @@ func (c *activationServiceClient) Highest(ctx context.Context, in *emptypb.Empty return out, nil } -func (c *activationServiceClient) Stream(ctx context.Context, in *ActivationStreamRequest, opts ...grpc.CallOption) (ActivationService_StreamClient, error) { - stream, err := c.cc.NewStream(ctx, &ActivationService_ServiceDesc.Streams[0], ActivationService_Stream_FullMethodName, opts...) - if err != nil { - return nil, err - } - x := &activationServiceStreamClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ActivationService_StreamClient interface { - Recv() (*ActivationStreamResponse, error) - grpc.ClientStream -} - -type activationServiceStreamClient struct { - grpc.ClientStream -} - -func (x *activationServiceStreamClient) Recv() (*ActivationStreamResponse, error) { - m := new(ActivationStreamResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - // ActivationServiceServer is the server API for ActivationService service. // All implementations should embed UnimplementedActivationServiceServer // for forward compatibility @@ -102,7 +68,6 @@ type ActivationServiceServer interface { Get(context.Context, *GetRequest) (*GetResponse, error) // Highest returns the atx id with the highest tick count. Highest(context.Context, *emptypb.Empty) (*HighestResponse, error) - Stream(*ActivationStreamRequest, ActivationService_StreamServer) error } // UnimplementedActivationServiceServer should be embedded to have forward compatible implementations. @@ -115,9 +80,6 @@ func (UnimplementedActivationServiceServer) Get(context.Context, *GetRequest) (* func (UnimplementedActivationServiceServer) Highest(context.Context, *emptypb.Empty) (*HighestResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Highest not implemented") } -func (UnimplementedActivationServiceServer) Stream(*ActivationStreamRequest, ActivationService_StreamServer) error { - return status.Errorf(codes.Unimplemented, "method Stream not implemented") -} // UnsafeActivationServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ActivationServiceServer will @@ -166,27 +128,6 @@ func _ActivationService_Highest_Handler(srv interface{}, ctx context.Context, de return interceptor(ctx, in, info, handler) } -func _ActivationService_Stream_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ActivationStreamRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ActivationServiceServer).Stream(m, &activationServiceStreamServer{stream}) -} - -type ActivationService_StreamServer interface { - Send(*ActivationStreamResponse) error - grpc.ServerStream -} - -type activationServiceStreamServer struct { - grpc.ServerStream -} - -func (x *activationServiceStreamServer) Send(m *ActivationStreamResponse) error { - return x.ServerStream.SendMsg(m) -} - // ActivationService_ServiceDesc is the grpc.ServiceDesc for ActivationService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -203,12 +144,6 @@ var ActivationService_ServiceDesc = grpc.ServiceDesc{ Handler: _ActivationService_Highest_Handler, }, }, - Streams: []grpc.StreamDesc{ - { - StreamName: "Stream", - Handler: _ActivationService_Stream_Handler, - ServerStreams: true, - }, - }, + Streams: []grpc.StreamDesc{}, Metadata: "spacemesh/v1/activation.proto", } diff --git a/release/go/spacemesh/v1/activation_types.pb.go b/release/go/spacemesh/v1/activation_types.pb.go index 5f1bb924..ad7599f2 100644 --- a/release/go/spacemesh/v1/activation_types.pb.go +++ b/release/go/spacemesh/v1/activation_types.pb.go @@ -169,529 +169,6 @@ func (x *HighestResponse) GetAtx() *Activation { return nil } -type ActivationStreamResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - V1 *ActivationV1 `protobuf:"bytes,1,opt,name=v1,proto3" json:"v1,omitempty"` -} - -func (x *ActivationStreamResponse) Reset() { - *x = ActivationStreamResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_activation_types_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ActivationStreamResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ActivationStreamResponse) ProtoMessage() {} - -func (x *ActivationStreamResponse) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_activation_types_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ActivationStreamResponse.ProtoReflect.Descriptor instead. -func (*ActivationStreamResponse) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_activation_types_proto_rawDescGZIP(), []int{3} -} - -func (x *ActivationStreamResponse) GetV1() *ActivationV1 { - if x != nil { - return x.V1 - } - return nil -} - -type ActivationV1 struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - NodeId []byte `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` - Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` - PublishEpoch uint32 `protobuf:"varint,4,opt,name=publish_epoch,json=publishEpoch,proto3" json:"publish_epoch,omitempty"` - Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` - PrevAtx []byte `protobuf:"bytes,6,opt,name=prev_atx,json=prevAtx,proto3" json:"prev_atx,omitempty"` - PositioningAtx []byte `protobuf:"bytes,7,opt,name=positioning_atx,json=positioningAtx,proto3" json:"positioning_atx,omitempty"` - CommittmentAtx []byte `protobuf:"bytes,8,opt,name=committment_atx,json=committmentAtx,proto3" json:"committment_atx,omitempty"` - InitialPost *Post `protobuf:"bytes,9,opt,name=initial_post,json=initialPost,proto3" json:"initial_post,omitempty"` - Coinbase string `protobuf:"bytes,10,opt,name=coinbase,proto3" json:"coinbase,omitempty"` - Units uint32 `protobuf:"varint,11,opt,name=units,proto3" json:"units,omitempty"` - BaseTick uint32 `protobuf:"varint,12,opt,name=base_tick,json=baseTick,proto3" json:"base_tick,omitempty"` - Ticks uint32 `protobuf:"varint,13,opt,name=ticks,proto3" json:"ticks,omitempty"` - PoetProof *PoetProof `protobuf:"bytes,14,opt,name=poet_proof,json=poetProof,proto3" json:"poet_proof,omitempty"` - Post *Post `protobuf:"bytes,15,opt,name=post,proto3" json:"post,omitempty"` - VrfPostIndex *VRFPostIndex `protobuf:"bytes,16,opt,name=vrf_post_index,json=vrfPostIndex,proto3" json:"vrf_post_index,omitempty"` -} - -func (x *ActivationV1) Reset() { - *x = ActivationV1{} - if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_activation_types_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ActivationV1) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ActivationV1) ProtoMessage() {} - -func (x *ActivationV1) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_activation_types_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ActivationV1.ProtoReflect.Descriptor instead. -func (*ActivationV1) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_activation_types_proto_rawDescGZIP(), []int{4} -} - -func (x *ActivationV1) GetId() []byte { - if x != nil { - return x.Id - } - return nil -} - -func (x *ActivationV1) GetNodeId() []byte { - if x != nil { - return x.NodeId - } - return nil -} - -func (x *ActivationV1) GetSignature() []byte { - if x != nil { - return x.Signature - } - return nil -} - -func (x *ActivationV1) GetPublishEpoch() uint32 { - if x != nil { - return x.PublishEpoch - } - return 0 -} - -func (x *ActivationV1) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *ActivationV1) GetPrevAtx() []byte { - if x != nil { - return x.PrevAtx - } - return nil -} - -func (x *ActivationV1) GetPositioningAtx() []byte { - if x != nil { - return x.PositioningAtx - } - return nil -} - -func (x *ActivationV1) GetCommittmentAtx() []byte { - if x != nil { - return x.CommittmentAtx - } - return nil -} - -func (x *ActivationV1) GetInitialPost() *Post { - if x != nil { - return x.InitialPost - } - return nil -} - -func (x *ActivationV1) GetCoinbase() string { - if x != nil { - return x.Coinbase - } - return "" -} - -func (x *ActivationV1) GetUnits() uint32 { - if x != nil { - return x.Units - } - return 0 -} - -func (x *ActivationV1) GetBaseTick() uint32 { - if x != nil { - return x.BaseTick - } - return 0 -} - -func (x *ActivationV1) GetTicks() uint32 { - if x != nil { - return x.Ticks - } - return 0 -} - -func (x *ActivationV1) GetPoetProof() *PoetProof { - if x != nil { - return x.PoetProof - } - return nil -} - -func (x *ActivationV1) GetPost() *Post { - if x != nil { - return x.Post - } - return nil -} - -func (x *ActivationV1) GetVrfPostIndex() *VRFPostIndex { - if x != nil { - return x.VrfPostIndex - } - return nil -} - -type VRFPostIndex struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` -} - -func (x *VRFPostIndex) Reset() { - *x = VRFPostIndex{} - if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_activation_types_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *VRFPostIndex) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VRFPostIndex) ProtoMessage() {} - -func (x *VRFPostIndex) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_activation_types_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use VRFPostIndex.ProtoReflect.Descriptor instead. -func (*VRFPostIndex) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_activation_types_proto_rawDescGZIP(), []int{5} -} - -func (x *VRFPostIndex) GetNonce() uint64 { - if x != nil { - return x.Nonce - } - return 0 -} - -type PoetProof struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProofNodes [][]byte `protobuf:"bytes,1,rep,name=proof_nodes,json=proofNodes,proto3" json:"proof_nodes,omitempty"` - Leaf uint64 `protobuf:"varint,2,opt,name=leaf,proto3" json:"leaf,omitempty"` -} - -func (x *PoetProof) Reset() { - *x = PoetProof{} - if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_activation_types_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PoetProof) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PoetProof) ProtoMessage() {} - -func (x *PoetProof) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_activation_types_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PoetProof.ProtoReflect.Descriptor instead. -func (*PoetProof) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_activation_types_proto_rawDescGZIP(), []int{6} -} - -func (x *PoetProof) GetProofNodes() [][]byte { - if x != nil { - return x.ProofNodes - } - return nil -} - -func (x *PoetProof) GetLeaf() uint64 { - if x != nil { - return x.Leaf - } - return 0 -} - -type PostMeta struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Challenge []byte `protobuf:"bytes,1,opt,name=challenge,proto3" json:"challenge,omitempty"` - Labels uint64 `protobuf:"varint,2,opt,name=labels,proto3" json:"labels,omitempty"` -} - -func (x *PostMeta) Reset() { - *x = PostMeta{} - if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_activation_types_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PostMeta) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PostMeta) ProtoMessage() {} - -func (x *PostMeta) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_activation_types_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PostMeta.ProtoReflect.Descriptor instead. -func (*PostMeta) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_activation_types_proto_rawDescGZIP(), []int{7} -} - -func (x *PostMeta) GetChallenge() []byte { - if x != nil { - return x.Challenge - } - return nil -} - -func (x *PostMeta) GetLabels() uint64 { - if x != nil { - return x.Labels - } - return 0 -} - -type Post struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Nonce uint32 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` - Indices []byte `protobuf:"bytes,2,opt,name=indices,proto3" json:"indices,omitempty"` - Pow uint64 `protobuf:"varint,3,opt,name=pow,proto3" json:"pow,omitempty"` -} - -func (x *Post) Reset() { - *x = Post{} - if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_activation_types_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Post) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Post) ProtoMessage() {} - -func (x *Post) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_activation_types_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Post.ProtoReflect.Descriptor instead. -func (*Post) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_activation_types_proto_rawDescGZIP(), []int{8} -} - -func (x *Post) GetNonce() uint32 { - if x != nil { - return x.Nonce - } - return 0 -} - -func (x *Post) GetIndices() []byte { - if x != nil { - return x.Indices - } - return nil -} - -func (x *Post) GetPow() uint64 { - if x != nil { - return x.Pow - } - return 0 -} - -type ActivationStreamRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StartEpoch uint32 `protobuf:"varint,1,opt,name=start_epoch,json=startEpoch,proto3" json:"start_epoch,omitempty"` - EndEpoch uint32 `protobuf:"varint,2,opt,name=end_epoch,json=endEpoch,proto3" json:"end_epoch,omitempty"` - Id []byte `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` - NodeId []byte `protobuf:"bytes,4,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` - // CoinbaseFilter is not supported by database index and will result in sequential scan. - // Apply EpochFilter together with CoinbaseFilter for better performance. - Coinbase string `protobuf:"bytes,5,opt,name=coinbase,proto3" json:"coinbase,omitempty"` - Watch bool `protobuf:"varint,6,opt,name=watch,proto3" json:"watch,omitempty"` -} - -func (x *ActivationStreamRequest) Reset() { - *x = ActivationStreamRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_activation_types_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ActivationStreamRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ActivationStreamRequest) ProtoMessage() {} - -func (x *ActivationStreamRequest) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_activation_types_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ActivationStreamRequest.ProtoReflect.Descriptor instead. -func (*ActivationStreamRequest) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_activation_types_proto_rawDescGZIP(), []int{9} -} - -func (x *ActivationStreamRequest) GetStartEpoch() uint32 { - if x != nil { - return x.StartEpoch - } - return 0 -} - -func (x *ActivationStreamRequest) GetEndEpoch() uint32 { - if x != nil { - return x.EndEpoch - } - return 0 -} - -func (x *ActivationStreamRequest) GetId() []byte { - if x != nil { - return x.Id - } - return nil -} - -func (x *ActivationStreamRequest) GetNodeId() []byte { - if x != nil { - return x.NodeId - } - return nil -} - -func (x *ActivationStreamRequest) GetCoinbase() string { - if x != nil { - return x.Coinbase - } - return "" -} - -func (x *ActivationStreamRequest) GetWatch() bool { - if x != nil { - return x.Watch - } - return false -} - var File_spacemesh_v1_activation_types_proto protoreflect.FileDescriptor var file_spacemesh_v1_activation_types_proto_rawDesc = []byte{ @@ -714,86 +191,19 @@ var file_spacemesh_v1_activation_types_proto_rawDesc = []byte{ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x03, 0x61, 0x74, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x03, - 0x61, 0x74, 0x78, 0x22, 0x46, 0x0a, 0x18, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x2a, 0x0a, 0x02, 0x76, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x31, 0x52, 0x02, 0x76, 0x31, 0x22, 0xc1, 0x04, 0x0a, 0x0c, - 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x31, 0x12, 0x0e, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, - 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6e, - 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, - 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, - 0x75, 0x72, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x5f, 0x65, - 0x70, 0x6f, 0x63, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x70, 0x75, 0x62, 0x6c, - 0x69, 0x73, 0x68, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, - 0x65, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, - 0x65, 0x6e, 0x63, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x61, 0x74, 0x78, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x72, 0x65, 0x76, 0x41, 0x74, 0x78, 0x12, - 0x27, 0x0a, 0x0f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x61, - 0x74, 0x78, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, - 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x41, 0x74, 0x78, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x6d, - 0x69, 0x74, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x78, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x0e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x74, - 0x78, 0x12, 0x35, 0x0a, 0x0c, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x70, 0x6f, 0x73, - 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, - 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x0b, 0x69, 0x6e, 0x69, - 0x74, 0x69, 0x61, 0x6c, 0x50, 0x6f, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x69, 0x6e, - 0x62, 0x61, 0x73, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x69, 0x6e, - 0x62, 0x61, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x18, 0x0b, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x05, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x61, - 0x73, 0x65, 0x5f, 0x74, 0x69, 0x63, 0x6b, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x62, - 0x61, 0x73, 0x65, 0x54, 0x69, 0x63, 0x6b, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x63, 0x6b, 0x73, - 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x74, 0x69, 0x63, 0x6b, 0x73, 0x12, 0x36, 0x0a, - 0x0a, 0x70, 0x6f, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x0e, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x17, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, - 0x2e, 0x50, 0x6f, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x09, 0x70, 0x6f, 0x65, 0x74, - 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x26, 0x0a, 0x04, 0x70, 0x6f, 0x73, 0x74, 0x18, 0x0f, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, - 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x04, 0x70, 0x6f, 0x73, 0x74, 0x12, 0x40, 0x0a, - 0x0e, 0x76, 0x72, 0x66, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, - 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, - 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x52, 0x46, 0x50, 0x6f, 0x73, 0x74, 0x49, 0x6e, 0x64, 0x65, - 0x78, 0x52, 0x0c, 0x76, 0x72, 0x66, 0x50, 0x6f, 0x73, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x22, - 0x24, 0x0a, 0x0c, 0x56, 0x52, 0x46, 0x50, 0x6f, 0x73, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, - 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, - 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x22, 0x40, 0x0a, 0x09, 0x50, 0x6f, 0x65, 0x74, 0x50, 0x72, 0x6f, - 0x6f, 0x66, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f, 0x6e, 0x6f, 0x64, 0x65, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x4e, 0x6f, - 0x64, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x65, 0x61, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x04, 0x6c, 0x65, 0x61, 0x66, 0x22, 0x40, 0x0a, 0x08, 0x50, 0x6f, 0x73, 0x74, 0x4d, - 0x65, 0x74, 0x61, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, - 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x22, 0x48, 0x0a, 0x04, 0x50, 0x6f, 0x73, - 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x69, 0x6e, 0x64, 0x69, 0x63, - 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x65, - 0x73, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x6f, 0x77, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, - 0x70, 0x6f, 0x77, 0x22, 0xb2, 0x01, 0x0a, 0x17, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, - 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x64, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, - 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, - 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x62, 0x61, - 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x62, 0x61, - 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x61, 0x74, 0x63, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x05, 0x77, 0x61, 0x74, 0x63, 0x68, 0x42, 0xb9, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, - 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x42, 0x14, 0x41, - 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x6f, 0x73, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, - 0x65, 0x73, 0x68, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x53, 0x70, - 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x53, 0x70, 0x61, - 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x53, 0x70, 0x61, 0x63, - 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, - 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x61, 0x74, 0x78, 0x42, 0xb9, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x42, 0x14, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x6c, + 0x65, 0x61, 0x73, 0x65, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, + 0x68, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x76, 0x31, + 0xa2, 0x02, 0x03, 0x53, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, + 0x73, 0x68, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, + 0x68, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, + 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x0d, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x3a, 0x3a, 0x56, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -808,35 +218,23 @@ func file_spacemesh_v1_activation_types_proto_rawDescGZIP() []byte { return file_spacemesh_v1_activation_types_proto_rawDescData } -var file_spacemesh_v1_activation_types_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_spacemesh_v1_activation_types_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_spacemesh_v1_activation_types_proto_goTypes = []interface{}{ - (*GetRequest)(nil), // 0: spacemesh.v1.GetRequest - (*GetResponse)(nil), // 1: spacemesh.v1.GetResponse - (*HighestResponse)(nil), // 2: spacemesh.v1.HighestResponse - (*ActivationStreamResponse)(nil), // 3: spacemesh.v1.ActivationStreamResponse - (*ActivationV1)(nil), // 4: spacemesh.v1.ActivationV1 - (*VRFPostIndex)(nil), // 5: spacemesh.v1.VRFPostIndex - (*PoetProof)(nil), // 6: spacemesh.v1.PoetProof - (*PostMeta)(nil), // 7: spacemesh.v1.PostMeta - (*Post)(nil), // 8: spacemesh.v1.Post - (*ActivationStreamRequest)(nil), // 9: spacemesh.v1.ActivationStreamRequest - (*Activation)(nil), // 10: spacemesh.v1.Activation - (*MalfeasanceProof)(nil), // 11: spacemesh.v1.MalfeasanceProof + (*GetRequest)(nil), // 0: spacemesh.v1.GetRequest + (*GetResponse)(nil), // 1: spacemesh.v1.GetResponse + (*HighestResponse)(nil), // 2: spacemesh.v1.HighestResponse + (*Activation)(nil), // 3: spacemesh.v1.Activation + (*MalfeasanceProof)(nil), // 4: spacemesh.v1.MalfeasanceProof } var file_spacemesh_v1_activation_types_proto_depIdxs = []int32{ - 10, // 0: spacemesh.v1.GetResponse.atx:type_name -> spacemesh.v1.Activation - 11, // 1: spacemesh.v1.GetResponse.malfeasance_proof:type_name -> spacemesh.v1.MalfeasanceProof - 10, // 2: spacemesh.v1.HighestResponse.atx:type_name -> spacemesh.v1.Activation - 4, // 3: spacemesh.v1.ActivationStreamResponse.v1:type_name -> spacemesh.v1.ActivationV1 - 8, // 4: spacemesh.v1.ActivationV1.initial_post:type_name -> spacemesh.v1.Post - 6, // 5: spacemesh.v1.ActivationV1.poet_proof:type_name -> spacemesh.v1.PoetProof - 8, // 6: spacemesh.v1.ActivationV1.post:type_name -> spacemesh.v1.Post - 5, // 7: spacemesh.v1.ActivationV1.vrf_post_index:type_name -> spacemesh.v1.VRFPostIndex - 8, // [8:8] is the sub-list for method output_type - 8, // [8:8] is the sub-list for method input_type - 8, // [8:8] is the sub-list for extension type_name - 8, // [8:8] is the sub-list for extension extendee - 0, // [0:8] is the sub-list for field type_name + 3, // 0: spacemesh.v1.GetResponse.atx:type_name -> spacemesh.v1.Activation + 4, // 1: spacemesh.v1.GetResponse.malfeasance_proof:type_name -> spacemesh.v1.MalfeasanceProof + 3, // 2: spacemesh.v1.HighestResponse.atx:type_name -> spacemesh.v1.Activation + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name } func init() { file_spacemesh_v1_activation_types_proto_init() } @@ -882,90 +280,6 @@ func file_spacemesh_v1_activation_types_proto_init() { return nil } } - file_spacemesh_v1_activation_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ActivationStreamResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_spacemesh_v1_activation_types_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ActivationV1); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_spacemesh_v1_activation_types_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VRFPostIndex); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_spacemesh_v1_activation_types_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PoetProof); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_spacemesh_v1_activation_types_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PostMeta); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_spacemesh_v1_activation_types_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Post); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_spacemesh_v1_activation_types_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ActivationStreamRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } } type x struct{} out := protoimpl.TypeBuilder{ @@ -973,7 +287,7 @@ func file_spacemesh_v1_activation_types_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_spacemesh_v1_activation_types_proto_rawDesc, NumEnums: 0, - NumMessages: 10, + NumMessages: 3, NumExtensions: 0, NumServices: 0, }, diff --git a/spacemesh/v1/activation.proto b/spacemesh/v1/activation.proto index a7dda45b..a7c6b753 100644 --- a/spacemesh/v1/activation.proto +++ b/spacemesh/v1/activation.proto @@ -12,6 +12,4 @@ service ActivationService { // Highest returns the atx id with the highest tick count. rpc Highest(google.protobuf.Empty) returns (HighestResponse); - - rpc Stream(ActivationStreamRequest) returns (stream ActivationStreamResponse); } diff --git a/spacemesh/v1/activation_types.proto b/spacemesh/v1/activation_types.proto index 5cd75554..fa93afc3 100644 --- a/spacemesh/v1/activation_types.proto +++ b/spacemesh/v1/activation_types.proto @@ -16,58 +16,3 @@ message GetResponse { message HighestResponse { Activation atx = 1; } - -message ActivationStreamResponse { - ActivationV1 v1 = 1; -} - -message ActivationV1 { - bytes id = 1; - bytes node_id = 2; - bytes signature = 3; - uint32 publish_epoch = 4; - uint64 sequence = 5; - bytes prev_atx = 6; - bytes positioning_atx = 7; - bytes committment_atx = 8; - Post initial_post = 9; - string coinbase = 10; - uint32 units = 11; - uint32 base_tick = 12; - uint32 ticks = 13; - PoetProof poet_proof = 14; - Post post = 15; - VRFPostIndex vrf_post_index = 16; -} - -message VRFPostIndex { - uint64 nonce = 1; -} - -message PoetProof { - repeated bytes proof_nodes = 1; - uint64 leaf = 2; -} - - -message PostMeta { - bytes challenge = 1; - uint64 labels = 2; -} - -message Post { - uint32 nonce = 1; - bytes indices = 2; - uint64 pow = 3; -} - -message ActivationStreamRequest { - uint32 start_epoch = 1; - uint32 end_epoch = 2; - bytes id = 3; - bytes node_id = 4; - // CoinbaseFilter is not supported by database index and will result in sequential scan. - // Apply EpochFilter together with CoinbaseFilter for better performance. - string coinbase = 5; - bool watch = 6; -} From b10d491252b4b76a4540b0981f7dadbaba9e721b Mon Sep 17 00:00:00 2001 From: Dmitry Date: Thu, 9 Nov 2023 12:08:59 +0100 Subject: [PATCH 05/20] add post_meta --- release/go/spacemesh/v2/activation.pb.go | 264 ++++++++++++----------- spacemesh/v2/activation.proto | 3 +- 2 files changed, 140 insertions(+), 127 deletions(-) diff --git a/release/go/spacemesh/v2/activation.pb.go b/release/go/spacemesh/v2/activation.pb.go index e08efa71..d09149bc 100644 --- a/release/go/spacemesh/v2/activation.pb.go +++ b/release/go/spacemesh/v2/activation.pb.go @@ -107,7 +107,8 @@ type ActivationV1 struct { Ticks uint32 `protobuf:"varint,13,opt,name=ticks,proto3" json:"ticks,omitempty"` PoetProof *PoetProof `protobuf:"bytes,14,opt,name=poet_proof,json=poetProof,proto3" json:"poet_proof,omitempty"` Post *Post `protobuf:"bytes,15,opt,name=post,proto3" json:"post,omitempty"` - VrfPostIndex *VRFPostIndex `protobuf:"bytes,16,opt,name=vrf_post_index,json=vrfPostIndex,proto3" json:"vrf_post_index,omitempty"` + PostMeta *PostMeta `protobuf:"bytes,16,opt,name=post_meta,json=postMeta,proto3" json:"post_meta,omitempty"` + VrfPostIndex *VRFPostIndex `protobuf:"bytes,17,opt,name=vrf_post_index,json=vrfPostIndex,proto3" json:"vrf_post_index,omitempty"` } func (x *ActivationV1) Reset() { @@ -247,6 +248,13 @@ func (x *ActivationV1) GetPost() *Post { return nil } +func (x *ActivationV1) GetPostMeta() *PostMeta { + if x != nil { + return x.PostMeta + } + return nil +} + func (x *ActivationV1) GetVrfPostIndex() *VRFPostIndex { if x != nil { return x.VrfPostIndex @@ -926,7 +934,7 @@ var file_spacemesh_v2_activation_proto_rawDesc = []byte{ 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x31, 0x48, 0x00, 0x52, 0x02, 0x76, 0x31, 0x42, 0x0b, 0x0a, 0x09, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x64, 0x22, 0xc5, 0x04, 0x0a, 0x0c, 0x41, 0x63, 0x74, 0x69, 0x76, + 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x64, 0x22, 0xfa, 0x04, 0x0a, 0x0c, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x31, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, @@ -958,114 +966,117 @@ var file_spacemesh_v2_activation_proto_rawDesc = []byte{ 0x50, 0x6f, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x09, 0x70, 0x6f, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x26, 0x0a, 0x04, 0x70, 0x6f, 0x73, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, - 0x32, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x04, 0x70, 0x6f, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x0e, - 0x76, 0x72, 0x66, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x10, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, - 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x52, 0x46, 0x50, 0x6f, 0x73, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, - 0x52, 0x0c, 0x76, 0x72, 0x66, 0x50, 0x6f, 0x73, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x22, 0x53, - 0x0a, 0x10, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x12, 0x32, 0x0a, 0x02, 0x76, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, - 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, - 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x56, 0x31, - 0x48, 0x00, 0x52, 0x02, 0x76, 0x31, 0x42, 0x0b, 0x0a, 0x09, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x65, 0x64, 0x22, 0xcb, 0x01, 0x0a, 0x12, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x56, 0x31, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, - 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6e, 0x6f, 0x64, - 0x65, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x5f, 0x65, - 0x70, 0x6f, 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x70, 0x75, 0x62, 0x6c, - 0x69, 0x73, 0x68, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x69, 0x6e, - 0x62, 0x61, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x69, 0x6e, - 0x62, 0x61, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x05, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x61, - 0x73, 0x65, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x0a, 0x62, 0x61, 0x73, 0x65, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, - 0x69, 0x63, 0x6b, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x74, 0x69, 0x63, 0x6b, - 0x73, 0x22, 0x24, 0x0a, 0x0c, 0x56, 0x52, 0x46, 0x50, 0x6f, 0x73, 0x74, 0x49, 0x6e, 0x64, 0x65, - 0x78, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x22, 0x40, 0x0a, 0x09, 0x50, 0x6f, 0x65, 0x74, 0x50, - 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f, 0x6e, 0x6f, - 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x6f, 0x66, - 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x65, 0x61, 0x66, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x04, 0x6c, 0x65, 0x61, 0x66, 0x22, 0x40, 0x0a, 0x08, 0x50, 0x6f, 0x73, - 0x74, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, - 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, - 0x6e, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x22, 0x48, 0x0a, 0x04, 0x50, - 0x6f, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x69, 0x6e, 0x64, - 0x69, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x69, 0x6e, 0x64, 0x69, - 0x63, 0x65, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x6f, 0x77, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x03, 0x70, 0x6f, 0x77, 0x22, 0xb2, 0x01, 0x0a, 0x17, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x45, 0x70, 0x6f, - 0x63, 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x64, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x69, 0x6e, - 0x62, 0x61, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x69, 0x6e, - 0x62, 0x61, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x61, 0x74, 0x63, 0x68, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x05, 0x77, 0x61, 0x74, 0x63, 0x68, 0x22, 0xc4, 0x01, 0x0a, 0x11, 0x41, - 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x45, 0x70, 0x6f, 0x63, - 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x64, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x17, - 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x62, - 0x61, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x62, - 0x61, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, - 0x69, 0x6d, 0x69, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, - 0x74, 0x22, 0x4c, 0x0a, 0x0e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, - 0x69, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, - 0x50, 0x0a, 0x14, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, - 0x64, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x73, 0x32, 0xc0, 0x01, 0x0a, 0x17, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4b, 0x0a, - 0x06, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x25, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, + 0x32, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x04, 0x70, 0x6f, 0x73, 0x74, 0x12, 0x33, 0x0a, 0x09, + 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x16, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x50, + 0x6f, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x74, 0x4d, 0x65, 0x74, + 0x61, 0x12, 0x40, 0x0a, 0x0e, 0x76, 0x72, 0x66, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x6e, + 0x64, 0x65, 0x78, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x52, 0x46, 0x50, 0x6f, 0x73, 0x74, + 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x0c, 0x76, 0x72, 0x66, 0x50, 0x6f, 0x73, 0x74, 0x49, 0x6e, + 0x64, 0x65, 0x78, 0x22, 0x53, 0x0a, 0x10, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x32, 0x0a, 0x02, 0x76, 0x31, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, + 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x56, 0x31, 0x48, 0x00, 0x52, 0x02, 0x76, 0x31, 0x42, 0x0b, 0x0a, 0x09, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x64, 0x22, 0xcb, 0x01, 0x0a, 0x12, 0x41, 0x63, 0x74, + 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x56, 0x31, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x75, 0x62, 0x6c, + 0x69, 0x73, 0x68, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x0c, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x1a, 0x0a, + 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x75, 0x6e, 0x69, + 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x12, + 0x1f, 0x0a, 0x0b, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x62, 0x61, 0x73, 0x65, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x63, 0x6b, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x05, 0x74, 0x69, 0x63, 0x6b, 0x73, 0x22, 0x24, 0x0a, 0x0c, 0x56, 0x52, 0x46, 0x50, 0x6f, 0x73, + 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x22, 0x40, 0x0a, 0x09, + 0x50, 0x6f, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, + 0x6f, 0x66, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0a, + 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x65, + 0x61, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x6c, 0x65, 0x61, 0x66, 0x22, 0x40, + 0x0a, 0x08, 0x50, 0x6f, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, + 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, + 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, + 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, + 0x22, 0x48, 0x0a, 0x04, 0x50, 0x6f, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x07, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x65, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x6f, 0x77, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x70, 0x6f, 0x77, 0x22, 0xb2, 0x01, 0x0a, 0x17, 0x41, + 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, + 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x73, 0x74, 0x61, + 0x72, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x64, 0x5f, 0x65, + 0x70, 0x6f, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x45, + 0x70, 0x6f, 0x63, 0x68, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, + 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x61, 0x74, + 0x63, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x77, 0x61, 0x74, 0x63, 0x68, 0x22, + 0xc4, 0x01, 0x0a, 0x11, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x65, + 0x70, 0x6f, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x72, + 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x64, 0x5f, 0x65, 0x70, + 0x6f, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x45, 0x70, + 0x6f, 0x63, 0x68, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, + 0x63, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x63, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, + 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, + 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x4c, 0x0a, 0x0e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, + 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, + 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x50, 0x0a, 0x14, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x07, + 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, + 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x07, 0x68, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x32, 0xc0, 0x01, 0x0a, 0x17, 0x41, 0x63, 0x74, 0x69, 0x76, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x12, 0x4b, 0x0a, 0x06, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x25, 0x2e, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, + 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, + 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x30, 0x01, 0x12, + 0x58, 0x0a, 0x0d, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, + 0x12, 0x25, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, + 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, - 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, - 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x30, 0x01, 0x12, 0x58, 0x0a, 0x0d, 0x53, 0x74, - 0x72, 0x65, 0x61, 0x6d, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x25, 0x2e, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, - 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x30, 0x01, 0x32, 0xae, 0x01, 0x0a, 0x11, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x45, 0x0a, 0x04, 0x4c, 0x69, - 0x73, 0x74, 0x12, 0x1f, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, - 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, - 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, - 0x74, 0x12, 0x52, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, - 0x12, 0x1f, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, - 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x22, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, - 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x4c, 0x69, 0x73, 0x74, 0x42, 0xb4, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x42, 0x0f, 0x41, 0x63, 0x74, 0x69, - 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, - 0x65, 0x73, 0x68, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, - 0x65, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, - 0x32, 0x3b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x76, 0x32, 0xa2, 0x02, 0x03, - 0x53, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, - 0x56, 0x32, 0xca, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, - 0x32, 0xe2, 0x02, 0x18, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x32, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x53, - 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, + 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x30, 0x01, 0x32, 0xae, 0x01, 0x0a, 0x11, 0x41, 0x63, + 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, + 0x45, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1f, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, + 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x52, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x48, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x1f, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, + 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, + 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x42, 0xb4, 0x01, 0x0a, 0x10, 0x63, + 0x6f, 0x6d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x42, + 0x0f, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, + 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, + 0x65, 0x73, 0x68, 0x2f, 0x76, 0x32, 0x3b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, + 0x76, 0x32, 0xa2, 0x02, 0x03, 0x53, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, + 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, + 0x65, 0x73, 0x68, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x18, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, + 0x73, 0x68, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0xea, 0x02, 0x0d, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x3a, 0x3a, 0x56, + 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1100,23 +1111,24 @@ var file_spacemesh_v2_activation_proto_depIdxs = []int32{ 7, // 1: spacemesh.v2.ActivationV1.initial_post:type_name -> spacemesh.v2.Post 5, // 2: spacemesh.v2.ActivationV1.poet_proof:type_name -> spacemesh.v2.PoetProof 7, // 3: spacemesh.v2.ActivationV1.post:type_name -> spacemesh.v2.Post - 4, // 4: spacemesh.v2.ActivationV1.vrf_post_index:type_name -> spacemesh.v2.VRFPostIndex - 3, // 5: spacemesh.v2.ActivationHeader.v1:type_name -> spacemesh.v2.ActivationHeaderV1 - 0, // 6: spacemesh.v2.ActivationList.activations:type_name -> spacemesh.v2.Activation - 2, // 7: spacemesh.v2.ActivationHeaderList.headers:type_name -> spacemesh.v2.ActivationHeader - 8, // 8: spacemesh.v2.ActivationStreamService.Stream:input_type -> spacemesh.v2.ActivationStreamRequest - 8, // 9: spacemesh.v2.ActivationStreamService.StreamHeaders:input_type -> spacemesh.v2.ActivationStreamRequest - 9, // 10: spacemesh.v2.ActivationService.List:input_type -> spacemesh.v2.ActivationRequest - 9, // 11: spacemesh.v2.ActivationService.ListHeaders:input_type -> spacemesh.v2.ActivationRequest - 0, // 12: spacemesh.v2.ActivationStreamService.Stream:output_type -> spacemesh.v2.Activation - 2, // 13: spacemesh.v2.ActivationStreamService.StreamHeaders:output_type -> spacemesh.v2.ActivationHeader - 10, // 14: spacemesh.v2.ActivationService.List:output_type -> spacemesh.v2.ActivationList - 11, // 15: spacemesh.v2.ActivationService.ListHeaders:output_type -> spacemesh.v2.ActivationHeaderList - 12, // [12:16] is the sub-list for method output_type - 8, // [8:12] is the sub-list for method input_type - 8, // [8:8] is the sub-list for extension type_name - 8, // [8:8] is the sub-list for extension extendee - 0, // [0:8] is the sub-list for field type_name + 6, // 4: spacemesh.v2.ActivationV1.post_meta:type_name -> spacemesh.v2.PostMeta + 4, // 5: spacemesh.v2.ActivationV1.vrf_post_index:type_name -> spacemesh.v2.VRFPostIndex + 3, // 6: spacemesh.v2.ActivationHeader.v1:type_name -> spacemesh.v2.ActivationHeaderV1 + 0, // 7: spacemesh.v2.ActivationList.activations:type_name -> spacemesh.v2.Activation + 2, // 8: spacemesh.v2.ActivationHeaderList.headers:type_name -> spacemesh.v2.ActivationHeader + 8, // 9: spacemesh.v2.ActivationStreamService.Stream:input_type -> spacemesh.v2.ActivationStreamRequest + 8, // 10: spacemesh.v2.ActivationStreamService.StreamHeaders:input_type -> spacemesh.v2.ActivationStreamRequest + 9, // 11: spacemesh.v2.ActivationService.List:input_type -> spacemesh.v2.ActivationRequest + 9, // 12: spacemesh.v2.ActivationService.ListHeaders:input_type -> spacemesh.v2.ActivationRequest + 0, // 13: spacemesh.v2.ActivationStreamService.Stream:output_type -> spacemesh.v2.Activation + 2, // 14: spacemesh.v2.ActivationStreamService.StreamHeaders:output_type -> spacemesh.v2.ActivationHeader + 10, // 15: spacemesh.v2.ActivationService.List:output_type -> spacemesh.v2.ActivationList + 11, // 16: spacemesh.v2.ActivationService.ListHeaders:output_type -> spacemesh.v2.ActivationHeaderList + 13, // [13:17] is the sub-list for method output_type + 9, // [9:13] is the sub-list for method input_type + 9, // [9:9] is the sub-list for extension type_name + 9, // [9:9] is the sub-list for extension extendee + 0, // [0:9] is the sub-list for field type_name } func init() { file_spacemesh_v2_activation_proto_init() } diff --git a/spacemesh/v2/activation.proto b/spacemesh/v2/activation.proto index fad478b0..f6e02188 100644 --- a/spacemesh/v2/activation.proto +++ b/spacemesh/v2/activation.proto @@ -24,7 +24,8 @@ message ActivationV1 { uint32 ticks = 13; PoetProof poet_proof = 14; Post post = 15; - VRFPostIndex vrf_post_index = 16; + PostMeta post_meta = 16; + VRFPostIndex vrf_post_index = 17; } message ActivationHeader { From 76a6cbeb5974eccddaa81cb4b333441a2c527e1b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 7 Nov 2023 15:50:20 +0000 Subject: [PATCH 06/20] Bump github.com/grpc-ecosystem/grpc-gateway/v2 in /release/go Bumps [github.com/grpc-ecosystem/grpc-gateway/v2](https://github.com/grpc-ecosystem/grpc-gateway) from 2.18.0 to 2.18.1. - [Release notes](https://github.com/grpc-ecosystem/grpc-gateway/releases) - [Changelog](https://github.com/grpc-ecosystem/grpc-gateway/blob/main/.goreleaser.yml) - [Commits](https://github.com/grpc-ecosystem/grpc-gateway/compare/v2.18.0...v2.18.1) --- updated-dependencies: - dependency-name: github.com/grpc-ecosystem/grpc-gateway/v2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- release/go/go.mod | 10 +++++----- release/go/go.sum | 23 +++++++++++------------ 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/release/go/go.mod b/release/go/go.mod index e01f6614..15d89b9c 100644 --- a/release/go/go.mod +++ b/release/go/go.mod @@ -3,9 +3,9 @@ module github.com/spacemeshos/api/release/go go 1.20 require ( - github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.0 - google.golang.org/genproto/googleapis/api v0.0.0-20231016165738-49dd2c1f3d0b - google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b + github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.1 + google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 + google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 google.golang.org/grpc v1.59.0 google.golang.org/protobuf v1.31.0 ) @@ -14,6 +14,6 @@ require ( github.com/golang/protobuf v1.5.3 // indirect golang.org/x/net v0.17.0 // indirect golang.org/x/sys v0.13.0 // indirect - golang.org/x/text v0.13.0 // indirect - google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b // indirect + golang.org/x/text v0.14.0 // indirect + google.golang.org/genproto v0.0.0-20231030173426-d783a09b4405 // indirect ) diff --git a/release/go/go.sum b/release/go/go.sum index 0d5beaac..d63d9851 100644 --- a/release/go/go.sum +++ b/release/go/go.sum @@ -1,24 +1,23 @@ -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.0 h1:RtRsiaGvWxcwd8y3BiRZxsylPT8hLWZ5SPcfI+3IDNk= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.0/go.mod h1:TzP6duP4Py2pHLVPPQp42aoYI92+PCrVotyR5e8Vqlk= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.1 h1:6UKoz5ujsI55KNpsJH3UwCq3T8kKbZwNZBNPuTTje8U= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.1/go.mod h1:YvJ2f6MplWDhfxiUC3KpyTy76kYUZA4W3pTv/wdKQ9Y= golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE= golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= -golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= +golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b h1:+YaDE2r2OG8t/z5qmsh7Y+XXwCbvadxxZ0YY6mTdrVA= -google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:CgAqfJo+Xmu0GwA0411Ht3OU3OntXwsGmrmjI8ioGXI= -google.golang.org/genproto/googleapis/api v0.0.0-20231016165738-49dd2c1f3d0b h1:CIC2YMXmIhYw6evmhPxBKJ4fmLbOFtXQN/GV3XOZR8k= -google.golang.org/genproto/googleapis/api v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:IBQ646DjkDkvUIsVq/cc03FUFQ9wbZu7yE396YcL870= -google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b h1:ZlWIi1wSK56/8hn4QcBp/j9M7Gt3U/3hZw3mC7vDICo= -google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:swOH3j0KzcDDgGUWr+SNpyTen5YrXjS3eyPzFYKc6lc= +google.golang.org/genproto v0.0.0-20231030173426-d783a09b4405 h1:I6WNifs6pF9tNdSob2W24JtyxIYjzFB9qDlpUC76q+U= +google.golang.org/genproto v0.0.0-20231030173426-d783a09b4405/go.mod h1:3WDQMjmJk36UQhjQ89emUzb1mdaHcPeeAh4SCBKznB4= +google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 h1:JpwMPBpFN3uKhdaekDpiNlImDdkUAyiJ6ez/uxGaUSo= +google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17/go.mod h1:0xJLfVdJqpAPl8tDg1ujOCGzx6LFLttXT5NhllGOXY4= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 h1:AB/lmRny7e2pLhFEYIbl5qkDAUt2h0ZRO4wGPhZf+ik= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405/go.mod h1:67X1fPuzjcrkymZzZV1vvkFeTn2Rvc6lYF9MYFGCcwE= google.golang.org/grpc v1.59.0 h1:Z5Iec2pjwb+LEOqzpB2MR12/eKFhDPhuqW91O+4bwUk= google.golang.org/grpc v1.59.0/go.mod h1:aUPDwccQo6OTjy7Hct4AfBPD1GptF4fyUjIkQ9YtF98= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= From 3848e3213fd1e461e6ea8ae2b95a09ead92cd7df Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 7 Dec 2023 15:30:46 +0000 Subject: [PATCH 07/20] Bump actions/setup-go from 4 to 5 Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4 to 5. - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](https://github.com/actions/setup-go/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/setup-go dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4ddb2563..c6cfc920 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: - name: checkout uses: actions/checkout@v4 - name: set up go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: check-latest: true go-version-file: "release/go/go.mod" From 266a35165f66ffb12486c8976065c6b6df66d3a6 Mon Sep 17 00:00:00 2001 From: Ivan Shvedunov Date: Tue, 5 Dec 2023 06:01:38 +0400 Subject: [PATCH 08/20] Extend NetworkInfoResponse with more P2P info --- release/go/spacemesh/v1/debug_types.pb.go | 359 ++++++++++++++++------ spacemesh/v1/debug_types.proto | 18 +- 2 files changed, 287 insertions(+), 90 deletions(-) diff --git a/release/go/spacemesh/v1/debug_types.pb.go b/release/go/spacemesh/v1/debug_types.pb.go index a9dd12e8..5eca40b3 100644 --- a/release/go/spacemesh/v1/debug_types.pb.go +++ b/release/go/spacemesh/v1/debug_types.pb.go @@ -20,6 +20,104 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +type NetworkInfoResponse_NATType int32 + +const ( + NetworkInfoResponse_NATTypeUnknown NetworkInfoResponse_NATType = 0 + NetworkInfoResponse_Cone NetworkInfoResponse_NATType = 1 + NetworkInfoResponse_Symmetric NetworkInfoResponse_NATType = 2 +) + +// Enum value maps for NetworkInfoResponse_NATType. +var ( + NetworkInfoResponse_NATType_name = map[int32]string{ + 0: "NATTypeUnknown", + 1: "Cone", + 2: "Symmetric", + } + NetworkInfoResponse_NATType_value = map[string]int32{ + "NATTypeUnknown": 0, + "Cone": 1, + "Symmetric": 2, + } +) + +func (x NetworkInfoResponse_NATType) Enum() *NetworkInfoResponse_NATType { + p := new(NetworkInfoResponse_NATType) + *p = x + return p +} + +func (x NetworkInfoResponse_NATType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (NetworkInfoResponse_NATType) Descriptor() protoreflect.EnumDescriptor { + return file_spacemesh_v1_debug_types_proto_enumTypes[0].Descriptor() +} + +func (NetworkInfoResponse_NATType) Type() protoreflect.EnumType { + return &file_spacemesh_v1_debug_types_proto_enumTypes[0] +} + +func (x NetworkInfoResponse_NATType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use NetworkInfoResponse_NATType.Descriptor instead. +func (NetworkInfoResponse_NATType) EnumDescriptor() ([]byte, []int) { + return file_spacemesh_v1_debug_types_proto_rawDescGZIP(), []int{2, 0} +} + +type NetworkInfoResponse_Reachability int32 + +const ( + NetworkInfoResponse_ReachabilityUnknown NetworkInfoResponse_Reachability = 0 + NetworkInfoResponse_Public NetworkInfoResponse_Reachability = 1 + NetworkInfoResponse_Private NetworkInfoResponse_Reachability = 2 +) + +// Enum value maps for NetworkInfoResponse_Reachability. +var ( + NetworkInfoResponse_Reachability_name = map[int32]string{ + 0: "ReachabilityUnknown", + 1: "Public", + 2: "Private", + } + NetworkInfoResponse_Reachability_value = map[string]int32{ + "ReachabilityUnknown": 0, + "Public": 1, + "Private": 2, + } +) + +func (x NetworkInfoResponse_Reachability) Enum() *NetworkInfoResponse_Reachability { + p := new(NetworkInfoResponse_Reachability) + *p = x + return p +} + +func (x NetworkInfoResponse_Reachability) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (NetworkInfoResponse_Reachability) Descriptor() protoreflect.EnumDescriptor { + return file_spacemesh_v1_debug_types_proto_enumTypes[1].Descriptor() +} + +func (NetworkInfoResponse_Reachability) Type() protoreflect.EnumType { + return &file_spacemesh_v1_debug_types_proto_enumTypes[1] +} + +func (x NetworkInfoResponse_Reachability) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use NetworkInfoResponse_Reachability.Descriptor instead. +func (NetworkInfoResponse_Reachability) EnumDescriptor() ([]byte, []int) { + return file_spacemesh_v1_debug_types_proto_rawDescGZIP(), []int{2, 1} +} + type Proposal_Status int32 const ( @@ -50,11 +148,11 @@ func (x Proposal_Status) String() string { } func (Proposal_Status) Descriptor() protoreflect.EnumDescriptor { - return file_spacemesh_v1_debug_types_proto_enumTypes[0].Descriptor() + return file_spacemesh_v1_debug_types_proto_enumTypes[2].Descriptor() } func (Proposal_Status) Type() protoreflect.EnumType { - return &file_spacemesh_v1_debug_types_proto_enumTypes[0] + return &file_spacemesh_v1_debug_types_proto_enumTypes[2] } func (x Proposal_Status) Number() protoreflect.EnumNumber { @@ -165,7 +263,13 @@ type NetworkInfoResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + ListenAddresses []string `protobuf:"bytes,2,rep,name=listen_addresses,json=listenAddresses,proto3" json:"listen_addresses,omitempty"` + KnownAddresses []string `protobuf:"bytes,3,rep,name=known_addresses,json=knownAddresses,proto3" json:"known_addresses,omitempty"` + NatTypeUdp NetworkInfoResponse_NATType `protobuf:"varint,4,opt,name=nat_type_udp,json=natTypeUdp,proto3,enum=spacemesh.v1.NetworkInfoResponse_NATType" json:"nat_type_udp,omitempty"` + NatTypeTcp NetworkInfoResponse_NATType `protobuf:"varint,5,opt,name=nat_type_tcp,json=natTypeTcp,proto3,enum=spacemesh.v1.NetworkInfoResponse_NATType" json:"nat_type_tcp,omitempty"` + Reachability NetworkInfoResponse_Reachability `protobuf:"varint,6,opt,name=reachability,proto3,enum=spacemesh.v1.NetworkInfoResponse_Reachability" json:"reachability,omitempty"` + DhtServerEnabled bool `protobuf:"varint,7,opt,name=dht_server_enabled,json=dhtServerEnabled,proto3" json:"dht_server_enabled,omitempty"` } func (x *NetworkInfoResponse) Reset() { @@ -207,6 +311,48 @@ func (x *NetworkInfoResponse) GetId() string { return "" } +func (x *NetworkInfoResponse) GetListenAddresses() []string { + if x != nil { + return x.ListenAddresses + } + return nil +} + +func (x *NetworkInfoResponse) GetKnownAddresses() []string { + if x != nil { + return x.KnownAddresses + } + return nil +} + +func (x *NetworkInfoResponse) GetNatTypeUdp() NetworkInfoResponse_NATType { + if x != nil { + return x.NatTypeUdp + } + return NetworkInfoResponse_NATTypeUnknown +} + +func (x *NetworkInfoResponse) GetNatTypeTcp() NetworkInfoResponse_NATType { + if x != nil { + return x.NatTypeTcp + } + return NetworkInfoResponse_NATTypeUnknown +} + +func (x *NetworkInfoResponse) GetReachability() NetworkInfoResponse_Reachability { + if x != nil { + return x.Reachability + } + return NetworkInfoResponse_ReachabilityUnknown +} + +func (x *NetworkInfoResponse) GetDhtServerEnabled() bool { + if x != nil { + return x.DhtServerEnabled + } + return false +} + type EpochData struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -557,63 +703,93 @@ var file_spacemesh_v1_debug_types_proto_rawDesc = []byte{ 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x0e, 0x61, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x22, 0x25, 0x0a, 0x13, - 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x22, 0x23, 0x0a, 0x09, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x44, 0x61, 0x74, 0x61, - 0x12, 0x16, 0x0a, 0x06, 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x06, 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x22, 0x39, 0x0a, 0x0b, 0x45, 0x6c, 0x69, 0x67, - 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x0c, 0x0a, 0x01, 0x6a, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x01, 0x6a, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, - 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, - 0x75, 0x72, 0x65, 0x22, 0x28, 0x0a, 0x10, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x53, 0x65, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x22, 0x41, 0x0a, - 0x11, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x41, - 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x52, 0x03, 0x69, 0x64, 0x73, - 0x22, 0xc1, 0x03, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2f, 0x0a, - 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x70, 0x6f, 0x63, - 0x68, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x2f, - 0x0a, 0x05, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x79, - 0x65, 0x72, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x05, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x12, - 0x31, 0x0a, 0x07, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x17, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, - 0x53, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x49, 0x64, 0x52, 0x07, 0x73, 0x6d, 0x65, 0x73, 0x68, - 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, - 0x63, 0x65, 0x12, 0x2d, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x17, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, - 0x45, 0x70, 0x6f, 0x63, 0x68, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x04, 0x64, 0x61, 0x74, - 0x61, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x61, 0x6c, 0x6c, 0x6f, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x06, 0x62, 0x61, 0x6c, 0x6c, 0x6f, 0x74, 0x12, 0x3f, 0x0a, 0x0d, 0x65, 0x6c, 0x69, - 0x67, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, - 0x45, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x0d, 0x65, 0x6c, 0x69, - 0x67, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x35, 0x0a, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, - 0x61, 0x6c, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x22, 0x23, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x6e, 0x63, 0x6c, - 0x75, 0x64, 0x65, 0x64, 0x10, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, - 0x64, 0x61, 0x74, 0x61, 0x42, 0xb4, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x44, 0x65, 0x62, 0x75, 0x67, - 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, - 0x73, 0x68, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, - 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, - 0x3b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, - 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x56, - 0x31, 0xca, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, - 0xe2, 0x02, 0x18, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x53, 0x70, - 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x22, 0x8f, 0x04, 0x0a, + 0x13, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, + 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, + 0x27, 0x0a, 0x0f, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x4b, 0x0a, 0x0c, 0x6e, 0x61, 0x74, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x5f, 0x75, 0x64, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, + 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x2e, 0x4e, 0x41, 0x54, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x6e, 0x61, 0x74, 0x54, 0x79, + 0x70, 0x65, 0x55, 0x64, 0x70, 0x12, 0x4b, 0x0a, 0x0c, 0x6e, 0x61, 0x74, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x5f, 0x74, 0x63, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4e, + 0x41, 0x54, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x6e, 0x61, 0x74, 0x54, 0x79, 0x70, 0x65, 0x54, + 0x63, 0x70, 0x12, 0x52, 0x0a, 0x0c, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, + 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x61, 0x63, + 0x68, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x0c, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x2c, 0x0a, 0x12, 0x64, 0x68, 0x74, 0x5f, 0x73, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x10, 0x64, 0x68, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x45, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x64, 0x22, 0x36, 0x0a, 0x07, 0x4e, 0x41, 0x54, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x12, 0x0a, 0x0e, 0x4e, 0x41, 0x54, 0x54, 0x79, 0x70, 0x65, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, + 0x6e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x43, 0x6f, 0x6e, 0x65, 0x10, 0x01, 0x12, 0x0d, 0x0a, + 0x09, 0x53, 0x79, 0x6d, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x10, 0x02, 0x22, 0x40, 0x0a, 0x0c, + 0x52, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x17, 0x0a, 0x13, + 0x52, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x55, 0x6e, 0x6b, 0x6e, + 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x10, + 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x10, 0x02, 0x22, 0x23, + 0x0a, 0x09, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x44, 0x61, 0x74, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x62, + 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x62, 0x65, 0x61, + 0x63, 0x6f, 0x6e, 0x22, 0x39, 0x0a, 0x0b, 0x45, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x12, 0x0c, 0x0a, 0x01, 0x6a, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x01, 0x6a, + 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x28, + 0x0a, 0x10, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x22, 0x41, 0x0a, 0x11, 0x41, 0x63, 0x74, 0x69, + 0x76, 0x65, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, + 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x52, 0x03, 0x69, 0x64, 0x73, 0x22, 0xc1, 0x03, 0x0a, 0x08, + 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2f, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, + 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x4e, 0x75, 0x6d, 0x62, + 0x65, 0x72, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x2f, 0x0a, 0x05, 0x6c, 0x61, 0x79, + 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x4e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x52, 0x05, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x12, 0x31, 0x0a, 0x07, 0x73, 0x6d, + 0x65, 0x73, 0x68, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6d, 0x65, 0x73, 0x68, + 0x65, 0x72, 0x49, 0x64, 0x52, 0x07, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x12, 0x1e, 0x0a, + 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, + 0x48, 0x00, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x2d, 0x0a, + 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, + 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x16, 0x0a, 0x06, + 0x62, 0x61, 0x6c, 0x6c, 0x6f, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x62, 0x61, + 0x6c, 0x6c, 0x6f, 0x74, 0x12, 0x3f, 0x0a, 0x0d, 0x65, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6c, 0x69, 0x67, 0x69, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x0d, 0x65, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x35, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, + 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, + 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x2e, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x23, 0x0a, 0x06, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x64, 0x10, + 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x42, + 0xb4, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, + 0x68, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x44, 0x65, 0x62, 0x75, 0x67, 0x54, 0x79, 0x70, 0x65, 0x73, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x6f, 0x73, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x67, 0x6f, 0x2f, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x6d, 0x65, 0x73, 0x68, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x58, 0x58, 0xaa, 0x02, 0x0c, + 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x53, + 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x53, 0x70, + 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, + 0x73, 0x68, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -628,38 +804,43 @@ func file_spacemesh_v1_debug_types_proto_rawDescGZIP() []byte { return file_spacemesh_v1_debug_types_proto_rawDescData } -var file_spacemesh_v1_debug_types_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_spacemesh_v1_debug_types_proto_enumTypes = make([]protoimpl.EnumInfo, 3) var file_spacemesh_v1_debug_types_proto_msgTypes = make([]protoimpl.MessageInfo, 8) var file_spacemesh_v1_debug_types_proto_goTypes = []interface{}{ - (Proposal_Status)(0), // 0: spacemesh.v1.Proposal.Status - (*AccountsRequest)(nil), // 1: spacemesh.v1.AccountsRequest - (*AccountsResponse)(nil), // 2: spacemesh.v1.AccountsResponse - (*NetworkInfoResponse)(nil), // 3: spacemesh.v1.NetworkInfoResponse - (*EpochData)(nil), // 4: spacemesh.v1.EpochData - (*Eligibility)(nil), // 5: spacemesh.v1.Eligibility - (*ActiveSetRequest)(nil), // 6: spacemesh.v1.ActiveSetRequest - (*ActiveSetResponse)(nil), // 7: spacemesh.v1.ActiveSetResponse - (*Proposal)(nil), // 8: spacemesh.v1.Proposal - (*Account)(nil), // 9: spacemesh.v1.Account - (*ActivationId)(nil), // 10: spacemesh.v1.ActivationId - (*EpochNumber)(nil), // 11: spacemesh.v1.EpochNumber - (*LayerNumber)(nil), // 12: spacemesh.v1.LayerNumber - (*SmesherId)(nil), // 13: spacemesh.v1.SmesherId + (NetworkInfoResponse_NATType)(0), // 0: spacemesh.v1.NetworkInfoResponse.NATType + (NetworkInfoResponse_Reachability)(0), // 1: spacemesh.v1.NetworkInfoResponse.Reachability + (Proposal_Status)(0), // 2: spacemesh.v1.Proposal.Status + (*AccountsRequest)(nil), // 3: spacemesh.v1.AccountsRequest + (*AccountsResponse)(nil), // 4: spacemesh.v1.AccountsResponse + (*NetworkInfoResponse)(nil), // 5: spacemesh.v1.NetworkInfoResponse + (*EpochData)(nil), // 6: spacemesh.v1.EpochData + (*Eligibility)(nil), // 7: spacemesh.v1.Eligibility + (*ActiveSetRequest)(nil), // 8: spacemesh.v1.ActiveSetRequest + (*ActiveSetResponse)(nil), // 9: spacemesh.v1.ActiveSetResponse + (*Proposal)(nil), // 10: spacemesh.v1.Proposal + (*Account)(nil), // 11: spacemesh.v1.Account + (*ActivationId)(nil), // 12: spacemesh.v1.ActivationId + (*EpochNumber)(nil), // 13: spacemesh.v1.EpochNumber + (*LayerNumber)(nil), // 14: spacemesh.v1.LayerNumber + (*SmesherId)(nil), // 15: spacemesh.v1.SmesherId } var file_spacemesh_v1_debug_types_proto_depIdxs = []int32{ - 9, // 0: spacemesh.v1.AccountsResponse.account_wrapper:type_name -> spacemesh.v1.Account - 10, // 1: spacemesh.v1.ActiveSetResponse.ids:type_name -> spacemesh.v1.ActivationId - 11, // 2: spacemesh.v1.Proposal.epoch:type_name -> spacemesh.v1.EpochNumber - 12, // 3: spacemesh.v1.Proposal.layer:type_name -> spacemesh.v1.LayerNumber - 13, // 4: spacemesh.v1.Proposal.smesher:type_name -> spacemesh.v1.SmesherId - 4, // 5: spacemesh.v1.Proposal.data:type_name -> spacemesh.v1.EpochData - 5, // 6: spacemesh.v1.Proposal.eligibilities:type_name -> spacemesh.v1.Eligibility - 0, // 7: spacemesh.v1.Proposal.status:type_name -> spacemesh.v1.Proposal.Status - 8, // [8:8] is the sub-list for method output_type - 8, // [8:8] is the sub-list for method input_type - 8, // [8:8] is the sub-list for extension type_name - 8, // [8:8] is the sub-list for extension extendee - 0, // [0:8] is the sub-list for field type_name + 11, // 0: spacemesh.v1.AccountsResponse.account_wrapper:type_name -> spacemesh.v1.Account + 0, // 1: spacemesh.v1.NetworkInfoResponse.nat_type_udp:type_name -> spacemesh.v1.NetworkInfoResponse.NATType + 0, // 2: spacemesh.v1.NetworkInfoResponse.nat_type_tcp:type_name -> spacemesh.v1.NetworkInfoResponse.NATType + 1, // 3: spacemesh.v1.NetworkInfoResponse.reachability:type_name -> spacemesh.v1.NetworkInfoResponse.Reachability + 12, // 4: spacemesh.v1.ActiveSetResponse.ids:type_name -> spacemesh.v1.ActivationId + 13, // 5: spacemesh.v1.Proposal.epoch:type_name -> spacemesh.v1.EpochNumber + 14, // 6: spacemesh.v1.Proposal.layer:type_name -> spacemesh.v1.LayerNumber + 15, // 7: spacemesh.v1.Proposal.smesher:type_name -> spacemesh.v1.SmesherId + 6, // 8: spacemesh.v1.Proposal.data:type_name -> spacemesh.v1.EpochData + 7, // 9: spacemesh.v1.Proposal.eligibilities:type_name -> spacemesh.v1.Eligibility + 2, // 10: spacemesh.v1.Proposal.status:type_name -> spacemesh.v1.Proposal.Status + 11, // [11:11] is the sub-list for method output_type + 11, // [11:11] is the sub-list for method input_type + 11, // [11:11] is the sub-list for extension type_name + 11, // [11:11] is the sub-list for extension extendee + 0, // [0:11] is the sub-list for field type_name } func init() { file_spacemesh_v1_debug_types_proto_init() } @@ -776,7 +957,7 @@ func file_spacemesh_v1_debug_types_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_spacemesh_v1_debug_types_proto_rawDesc, - NumEnums: 1, + NumEnums: 3, NumMessages: 8, NumExtensions: 0, NumServices: 0, diff --git a/spacemesh/v1/debug_types.proto b/spacemesh/v1/debug_types.proto index 6c74e2fd..90952737 100644 --- a/spacemesh/v1/debug_types.proto +++ b/spacemesh/v1/debug_types.proto @@ -15,6 +15,22 @@ message AccountsResponse { message NetworkInfoResponse { string id = 1; + repeated string listen_addresses = 2; + repeated string known_addresses = 3; + enum NATType { + NATTypeUnknown = 0; + Cone = 1; + Symmetric = 2; + } + NATType nat_type_udp = 4; + NATType nat_type_tcp = 5; + enum Reachability { + ReachabilityUnknown = 0; + Public = 1; + Private = 2; + }; + Reachability reachability = 6; + bool dht_server_enabled = 7; } message EpochData { @@ -50,4 +66,4 @@ message Proposal { Included = 1; } Status status = 9; -} \ No newline at end of file +} From 9ac77762d0dae767ed077f6aa931031716925951 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 12 Dec 2023 15:58:46 +0000 Subject: [PATCH 09/20] Bump google.golang.org/grpc from 1.59.0 to 1.60.0 in /release/go Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.59.0 to 1.60.0. - [Release notes](https://github.com/grpc/grpc-go/releases) - [Commits](https://github.com/grpc/grpc-go/compare/v1.59.0...v1.60.0) --- updated-dependencies: - dependency-name: google.golang.org/grpc dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- release/go/go.mod | 2 +- release/go/go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/release/go/go.mod b/release/go/go.mod index 15d89b9c..5c9cae6a 100644 --- a/release/go/go.mod +++ b/release/go/go.mod @@ -6,7 +6,7 @@ require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.1 google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 - google.golang.org/grpc v1.59.0 + google.golang.org/grpc v1.60.0 google.golang.org/protobuf v1.31.0 ) diff --git a/release/go/go.sum b/release/go/go.sum index d63d9851..fcca1f49 100644 --- a/release/go/go.sum +++ b/release/go/go.sum @@ -18,8 +18,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 h1: google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17/go.mod h1:0xJLfVdJqpAPl8tDg1ujOCGzx6LFLttXT5NhllGOXY4= google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 h1:AB/lmRny7e2pLhFEYIbl5qkDAUt2h0ZRO4wGPhZf+ik= google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405/go.mod h1:67X1fPuzjcrkymZzZV1vvkFeTn2Rvc6lYF9MYFGCcwE= -google.golang.org/grpc v1.59.0 h1:Z5Iec2pjwb+LEOqzpB2MR12/eKFhDPhuqW91O+4bwUk= -google.golang.org/grpc v1.59.0/go.mod h1:aUPDwccQo6OTjy7Hct4AfBPD1GptF4fyUjIkQ9YtF98= +google.golang.org/grpc v1.60.0 h1:6FQAR0kM31P6MRdeluor2w2gPaS4SVNrD/DNTxrQ15k= +google.golang.org/grpc v1.60.0/go.mod h1:OlCHIeLYqSSsLi6i49B5QGdzaMZK9+M7LXN2FKz4eGM= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= From 1c09abb33aa54c044d560d5797c7b9d629eb508b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 19 Dec 2023 15:44:17 +0000 Subject: [PATCH 10/20] Bump google.golang.org/grpc from 1.60.0 to 1.60.1 in /release/go Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.60.0 to 1.60.1. - [Release notes](https://github.com/grpc/grpc-go/releases) - [Commits](https://github.com/grpc/grpc-go/compare/v1.60.0...v1.60.1) --- updated-dependencies: - dependency-name: google.golang.org/grpc dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- release/go/go.mod | 2 +- release/go/go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/release/go/go.mod b/release/go/go.mod index 5c9cae6a..ebfd3396 100644 --- a/release/go/go.mod +++ b/release/go/go.mod @@ -6,7 +6,7 @@ require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.1 google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 - google.golang.org/grpc v1.60.0 + google.golang.org/grpc v1.60.1 google.golang.org/protobuf v1.31.0 ) diff --git a/release/go/go.sum b/release/go/go.sum index fcca1f49..1f7712b0 100644 --- a/release/go/go.sum +++ b/release/go/go.sum @@ -18,8 +18,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 h1: google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17/go.mod h1:0xJLfVdJqpAPl8tDg1ujOCGzx6LFLttXT5NhllGOXY4= google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 h1:AB/lmRny7e2pLhFEYIbl5qkDAUt2h0ZRO4wGPhZf+ik= google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405/go.mod h1:67X1fPuzjcrkymZzZV1vvkFeTn2Rvc6lYF9MYFGCcwE= -google.golang.org/grpc v1.60.0 h1:6FQAR0kM31P6MRdeluor2w2gPaS4SVNrD/DNTxrQ15k= -google.golang.org/grpc v1.60.0/go.mod h1:OlCHIeLYqSSsLi6i49B5QGdzaMZK9+M7LXN2FKz4eGM= +google.golang.org/grpc v1.60.1 h1:26+wFr+cNqSGFcOXcabYC0lUVJVRa2Sb2ortSK7VrEU= +google.golang.org/grpc v1.60.1/go.mod h1:OlCHIeLYqSSsLi6i49B5QGdzaMZK9+M7LXN2FKz4eGM= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= From 7105126258b16f473eaf8cd22e28a5cf4328976d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 22 Dec 2023 15:27:12 +0000 Subject: [PATCH 11/20] Bump google.golang.org/protobuf from 1.31.0 to 1.32.0 in /release/go Bumps google.golang.org/protobuf from 1.31.0 to 1.32.0. --- updated-dependencies: - dependency-name: google.golang.org/protobuf dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- release/go/go.mod | 2 +- release/go/go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/release/go/go.mod b/release/go/go.mod index ebfd3396..519e390d 100644 --- a/release/go/go.mod +++ b/release/go/go.mod @@ -7,7 +7,7 @@ require ( google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 google.golang.org/grpc v1.60.1 - google.golang.org/protobuf v1.31.0 + google.golang.org/protobuf v1.32.0 ) require ( diff --git a/release/go/go.sum b/release/go/go.sum index 1f7712b0..69fc03e1 100644 --- a/release/go/go.sum +++ b/release/go/go.sum @@ -22,5 +22,5 @@ google.golang.org/grpc v1.60.1 h1:26+wFr+cNqSGFcOXcabYC0lUVJVRa2Sb2ortSK7VrEU= google.golang.org/grpc v1.60.1/go.mod h1:OlCHIeLYqSSsLi6i49B5QGdzaMZK9+M7LXN2FKz4eGM= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= -google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= +google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= From dac2b35c1d6344795963d1adc398ea091c58c325 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 4 Jan 2024 15:04:27 +0000 Subject: [PATCH 12/20] Bump github.com/grpc-ecosystem/grpc-gateway/v2 in /release/go Bumps [github.com/grpc-ecosystem/grpc-gateway/v2](https://github.com/grpc-ecosystem/grpc-gateway) from 2.18.1 to 2.19.0. - [Release notes](https://github.com/grpc-ecosystem/grpc-gateway/releases) - [Changelog](https://github.com/grpc-ecosystem/grpc-gateway/blob/main/.goreleaser.yml) - [Commits](https://github.com/grpc-ecosystem/grpc-gateway/compare/v2.18.1...v2.19.0) --- updated-dependencies: - dependency-name: github.com/grpc-ecosystem/grpc-gateway/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- release/go/go.mod | 12 ++++++------ release/go/go.sum | 24 ++++++++++++------------ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/release/go/go.mod b/release/go/go.mod index 519e390d..f1f76813 100644 --- a/release/go/go.mod +++ b/release/go/go.mod @@ -3,17 +3,17 @@ module github.com/spacemeshos/api/release/go go 1.20 require ( - github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.1 - google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 - google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 + github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.0 + google.golang.org/genproto/googleapis/api v0.0.0-20240102182953-50ed04b92917 + google.golang.org/genproto/googleapis/rpc v0.0.0-20240102182953-50ed04b92917 google.golang.org/grpc v1.60.1 google.golang.org/protobuf v1.32.0 ) require ( github.com/golang/protobuf v1.5.3 // indirect - golang.org/x/net v0.17.0 // indirect - golang.org/x/sys v0.13.0 // indirect + golang.org/x/net v0.19.0 // indirect + golang.org/x/sys v0.15.0 // indirect golang.org/x/text v0.14.0 // indirect - google.golang.org/genproto v0.0.0-20231030173426-d783a09b4405 // indirect + google.golang.org/genproto v0.0.0-20231212172506-995d672761c0 // indirect ) diff --git a/release/go/go.sum b/release/go/go.sum index 69fc03e1..412a6a4e 100644 --- a/release/go/go.sum +++ b/release/go/go.sum @@ -3,21 +3,21 @@ github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.1 h1:6UKoz5ujsI55KNpsJH3UwCq3T8kKbZwNZBNPuTTje8U= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.1/go.mod h1:YvJ2f6MplWDhfxiUC3KpyTy76kYUZA4W3pTv/wdKQ9Y= -golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= -golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= -golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE= -golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.0 h1:Wqo399gCIufwto+VfwCSvsnfGpF/w5E9CNxSwbpD6No= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.0/go.mod h1:qmOFXW2epJhM0qSnUUYpldc7gVz2KMQwJ/QYCDIa7XU= +golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= +golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= +golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= +golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/genproto v0.0.0-20231030173426-d783a09b4405 h1:I6WNifs6pF9tNdSob2W24JtyxIYjzFB9qDlpUC76q+U= -google.golang.org/genproto v0.0.0-20231030173426-d783a09b4405/go.mod h1:3WDQMjmJk36UQhjQ89emUzb1mdaHcPeeAh4SCBKznB4= -google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 h1:JpwMPBpFN3uKhdaekDpiNlImDdkUAyiJ6ez/uxGaUSo= -google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17/go.mod h1:0xJLfVdJqpAPl8tDg1ujOCGzx6LFLttXT5NhllGOXY4= -google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 h1:AB/lmRny7e2pLhFEYIbl5qkDAUt2h0ZRO4wGPhZf+ik= -google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405/go.mod h1:67X1fPuzjcrkymZzZV1vvkFeTn2Rvc6lYF9MYFGCcwE= +google.golang.org/genproto v0.0.0-20231212172506-995d672761c0 h1:YJ5pD9rF8o9Qtta0Cmy9rdBwkSjrTCT6XTiUQVOtIos= +google.golang.org/genproto v0.0.0-20231212172506-995d672761c0/go.mod h1:l/k7rMz0vFTBPy+tFSGvXEd3z+BcoG1k7EHbqm+YBsY= +google.golang.org/genproto/googleapis/api v0.0.0-20240102182953-50ed04b92917 h1:rcS6EyEaoCO52hQDupoSfrxI3R6C2Tq741is7X8OvnM= +google.golang.org/genproto/googleapis/api v0.0.0-20240102182953-50ed04b92917/go.mod h1:CmlNWB9lSezaYELKS5Ym1r44VrrbPUa7JTvw+6MbpJ0= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240102182953-50ed04b92917 h1:6G8oQ016D88m1xAKljMlBOOGWDZkes4kMhgGFlf8WcQ= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240102182953-50ed04b92917/go.mod h1:xtjpI3tXFPP051KaWnhvxkiubL/6dJ18vLVf7q2pTOU= google.golang.org/grpc v1.60.1 h1:26+wFr+cNqSGFcOXcabYC0lUVJVRa2Sb2ortSK7VrEU= google.golang.org/grpc v1.60.1/go.mod h1:OlCHIeLYqSSsLi6i49B5QGdzaMZK9+M7LXN2FKz4eGM= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= From 7d91bace98829e0611bd26c8d77707d2a675d220 Mon Sep 17 00:00:00 2001 From: earl Date: Wed, 10 Jan 2024 16:53:42 +0100 Subject: [PATCH 13/20] Add "until" to PoetWaitRound, PoetWaitProof, AtxPublished events --- release/go/spacemesh/v1/admin_types.pb.go | 232 +++++++++++++--------- spacemesh/v1/admin_types.proto | 3 + 2 files changed, 137 insertions(+), 98 deletions(-) diff --git a/release/go/spacemesh/v1/admin_types.pb.go b/release/go/spacemesh/v1/admin_types.pb.go index 8af42936..3051d3c1 100644 --- a/release/go/spacemesh/v1/admin_types.pb.go +++ b/release/go/spacemesh/v1/admin_types.pb.go @@ -841,9 +841,10 @@ type EventPoetWaitRound struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Current uint32 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"` - Publish uint32 `protobuf:"varint,2,opt,name=publish,proto3" json:"publish,omitempty"` - Wait *durationpb.Duration `protobuf:"bytes,3,opt,name=wait,proto3" json:"wait,omitempty"` + Current uint32 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"` + Publish uint32 `protobuf:"varint,2,opt,name=publish,proto3" json:"publish,omitempty"` + Wait *durationpb.Duration `protobuf:"bytes,3,opt,name=wait,proto3" json:"wait,omitempty"` + Until *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=until,proto3" json:"until,omitempty"` } func (x *EventPoetWaitRound) Reset() { @@ -899,14 +900,22 @@ func (x *EventPoetWaitRound) GetWait() *durationpb.Duration { return nil } +func (x *EventPoetWaitRound) GetUntil() *timestamppb.Timestamp { + if x != nil { + return x.Until + } + return nil +} + type EventPoetWaitProof struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Publish uint32 `protobuf:"varint,1,opt,name=publish,proto3" json:"publish,omitempty"` - Target uint32 `protobuf:"varint,2,opt,name=target,proto3" json:"target,omitempty"` - Wait *durationpb.Duration `protobuf:"bytes,3,opt,name=wait,proto3" json:"wait,omitempty"` + Publish uint32 `protobuf:"varint,1,opt,name=publish,proto3" json:"publish,omitempty"` + Target uint32 `protobuf:"varint,2,opt,name=target,proto3" json:"target,omitempty"` + Wait *durationpb.Duration `protobuf:"bytes,3,opt,name=wait,proto3" json:"wait,omitempty"` + Until *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=until,proto3" json:"until,omitempty"` } func (x *EventPoetWaitProof) Reset() { @@ -962,15 +971,23 @@ func (x *EventPoetWaitProof) GetWait() *durationpb.Duration { return nil } +func (x *EventPoetWaitProof) GetUntil() *timestamppb.Timestamp { + if x != nil { + return x.Until + } + return nil +} + type EventAtxPubished struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Current uint32 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"` - Target uint32 `protobuf:"varint,2,opt,name=target,proto3" json:"target,omitempty"` - Id []byte `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` - Wait *durationpb.Duration `protobuf:"bytes,4,opt,name=wait,proto3" json:"wait,omitempty"` + Current uint32 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"` + Target uint32 `protobuf:"varint,2,opt,name=target,proto3" json:"target,omitempty"` + Id []byte `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` + Wait *durationpb.Duration `protobuf:"bytes,4,opt,name=wait,proto3" json:"wait,omitempty"` + Until *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=until,proto3" json:"until,omitempty"` } func (x *EventAtxPubished) Reset() { @@ -1033,6 +1050,13 @@ func (x *EventAtxPubished) GetWait() *durationpb.Duration { return nil } +func (x *EventAtxPubished) GetUntil() *timestamppb.Timestamp { + if x != nil { + return x.Until + } + return nil +} + type EventEligibilities struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1554,84 +1578,93 @@ var file_spacemesh_v1_admin_types_proto_rawDesc = []byte{ 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x22, 0x31, 0x0a, 0x11, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x6f, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, - 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x22, 0x77, 0x0a, 0x12, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x50, 0x6f, 0x65, 0x74, 0x57, 0x61, 0x69, 0x74, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x12, - 0x18, 0x0a, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x75, 0x62, - 0x6c, 0x69, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x70, 0x75, 0x62, 0x6c, - 0x69, 0x73, 0x68, 0x12, 0x2d, 0x0a, 0x04, 0x77, 0x61, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x22, 0xa9, 0x01, 0x0a, 0x12, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x50, 0x6f, 0x65, 0x74, 0x57, 0x61, 0x69, 0x74, 0x52, 0x6f, 0x75, 0x6e, 0x64, + 0x12, 0x18, 0x0a, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x75, + 0x62, 0x6c, 0x69, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x70, 0x75, 0x62, + 0x6c, 0x69, 0x73, 0x68, 0x12, 0x2d, 0x0a, 0x04, 0x77, 0x61, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x77, + 0x61, 0x69, 0x74, 0x12, 0x30, 0x0a, 0x05, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, + 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x22, 0xa7, 0x01, 0x0a, 0x12, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, + 0x6f, 0x65, 0x74, 0x57, 0x61, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x18, 0x0a, 0x07, + 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x70, + 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x2d, + 0x0a, 0x04, 0x77, 0x61, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x77, 0x61, 0x69, 0x74, 0x12, 0x30, 0x0a, + 0x05, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x22, + 0xb5, 0x01, 0x0a, 0x10, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x78, 0x50, 0x75, 0x62, 0x69, + 0x73, 0x68, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x16, + 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, + 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2d, 0x0a, 0x04, 0x77, 0x61, 0x69, 0x74, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x04, 0x77, 0x61, 0x69, 0x74, 0x12, 0x30, 0x0a, 0x05, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x52, 0x05, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x22, 0xc5, 0x01, 0x0a, 0x12, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x45, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x14, + 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x65, + 0x70, 0x6f, 0x63, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, + 0x61, 0x74, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x61, 0x74, 0x78, 0x12, 0x26, + 0x0a, 0x0f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x69, 0x7a, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x53, + 0x65, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x47, 0x0a, 0x0d, 0x65, 0x6c, 0x69, 0x67, 0x69, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, + 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x45, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x52, 0x0d, 0x65, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x22, + 0x41, 0x0a, 0x13, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x45, 0x6c, 0x69, 0x67, 0x69, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x22, 0x41, 0x0a, 0x0d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, + 0x73, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, + 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x70, 0x72, 0x6f, + 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x22, 0x48, 0x0a, 0x10, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4d, 0x61, + 0x6c, 0x66, 0x65, 0x61, 0x73, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x34, 0x0a, 0x05, 0x70, 0x72, 0x6f, + 0x6f, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x6c, 0x66, 0x65, 0x61, 0x73, 0x61, + 0x6e, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x22, + 0x14, 0x0a, 0x12, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x79, 0x0a, 0x0e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x12, 0x31, 0x0a, 0x06, 0x75, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x77, 0x61, - 0x69, 0x74, 0x22, 0x75, 0x0a, 0x12, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x6f, 0x65, 0x74, 0x57, - 0x61, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x75, 0x62, 0x6c, - 0x69, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x70, 0x75, 0x62, 0x6c, 0x69, - 0x73, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x2d, 0x0a, 0x04, 0x77, 0x61, - 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x77, 0x61, 0x69, 0x74, 0x22, 0x83, 0x01, 0x0a, 0x10, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x41, 0x74, 0x78, 0x50, 0x75, 0x62, 0x69, 0x73, 0x68, 0x65, 0x64, 0x12, 0x18, - 0x0a, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, - 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x2d, 0x0a, 0x04, 0x77, 0x61, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x77, 0x61, 0x69, 0x74, 0x22, - 0xc5, 0x01, 0x0a, 0x12, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x45, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x69, - 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x16, 0x0a, 0x06, - 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x62, 0x65, - 0x61, 0x63, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x74, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x03, 0x61, 0x74, 0x78, 0x12, 0x26, 0x0a, 0x0f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, - 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x53, 0x65, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x47, - 0x0a, 0x0d, 0x65, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, - 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, - 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x45, 0x6c, 0x69, - 0x67, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x0d, 0x65, 0x6c, 0x69, 0x67, 0x69, 0x62, - 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x22, 0x41, 0x0a, 0x13, 0x50, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x61, 0x6c, 0x45, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x14, - 0x0a, 0x05, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, - 0x61, 0x79, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x41, 0x0a, 0x0d, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x6c, - 0x61, 0x79, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x61, 0x79, 0x65, - 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x22, 0x48, 0x0a, - 0x10, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4d, 0x61, 0x6c, 0x66, 0x65, 0x61, 0x73, 0x61, 0x6e, 0x63, - 0x65, 0x12, 0x34, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1e, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x61, 0x6c, 0x66, 0x65, 0x61, 0x73, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x6f, 0x66, - 0x52, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x22, 0x14, 0x0a, 0x12, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x79, 0x0a, - 0x0e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, - 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x75, 0x70, 0x74, - 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x75, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, - 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, - 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x22, 0x6e, 0x0a, 0x08, 0x50, 0x65, 0x65, 0x72, - 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x3e, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x04, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x42, 0xb4, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, - 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x41, - 0x64, 0x6d, 0x69, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x6c, - 0x65, 0x61, 0x73, 0x65, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, - 0x68, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x76, 0x31, - 0xa2, 0x02, 0x03, 0x53, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, - 0x73, 0x68, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, - 0x68, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, - 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, - 0x02, 0x0d, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x3a, 0x3a, 0x56, 0x31, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x75, 0x70, + 0x74, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, + 0x22, 0x6e, 0x0a, 0x08, 0x50, 0x65, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3e, 0x0a, 0x0b, + 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x1c, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, + 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, + 0x0b, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, + 0x74, 0x61, 0x67, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, + 0x42, 0xb4, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, + 0x73, 0x68, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x54, 0x79, 0x70, 0x65, + 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x6f, 0x73, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x67, 0x6f, 0x2f, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x58, 0x58, 0xaa, 0x02, + 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, + 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x53, + 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, + 0x65, 0x73, 0x68, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1691,17 +1724,20 @@ var file_spacemesh_v1_admin_types_proto_depIdxs = []int32{ 8, // 13: spacemesh.v1.Event.post_service_started:type_name -> spacemesh.v1.EventPostServiceStarted 9, // 14: spacemesh.v1.Event.post_service_stopped:type_name -> spacemesh.v1.EventPostServiceStopped 23, // 15: spacemesh.v1.EventPoetWaitRound.wait:type_name -> google.protobuf.Duration - 23, // 16: spacemesh.v1.EventPoetWaitProof.wait:type_name -> google.protobuf.Duration - 23, // 17: spacemesh.v1.EventAtxPubished.wait:type_name -> google.protobuf.Duration - 16, // 18: spacemesh.v1.EventEligibilities.eligibilities:type_name -> spacemesh.v1.ProposalEligibility - 24, // 19: spacemesh.v1.EventMalfeasance.proof:type_name -> spacemesh.v1.MalfeasanceProof - 23, // 20: spacemesh.v1.ConnectionInfo.uptime:type_name -> google.protobuf.Duration - 20, // 21: spacemesh.v1.PeerInfo.connections:type_name -> spacemesh.v1.ConnectionInfo - 22, // [22:22] is the sub-list for method output_type - 22, // [22:22] is the sub-list for method input_type - 22, // [22:22] is the sub-list for extension type_name - 22, // [22:22] is the sub-list for extension extendee - 0, // [0:22] is the sub-list for field type_name + 22, // 16: spacemesh.v1.EventPoetWaitRound.until:type_name -> google.protobuf.Timestamp + 23, // 17: spacemesh.v1.EventPoetWaitProof.wait:type_name -> google.protobuf.Duration + 22, // 18: spacemesh.v1.EventPoetWaitProof.until:type_name -> google.protobuf.Timestamp + 23, // 19: spacemesh.v1.EventAtxPubished.wait:type_name -> google.protobuf.Duration + 22, // 20: spacemesh.v1.EventAtxPubished.until:type_name -> google.protobuf.Timestamp + 16, // 21: spacemesh.v1.EventEligibilities.eligibilities:type_name -> spacemesh.v1.ProposalEligibility + 24, // 22: spacemesh.v1.EventMalfeasance.proof:type_name -> spacemesh.v1.MalfeasanceProof + 23, // 23: spacemesh.v1.ConnectionInfo.uptime:type_name -> google.protobuf.Duration + 20, // 24: spacemesh.v1.PeerInfo.connections:type_name -> spacemesh.v1.ConnectionInfo + 25, // [25:25] is the sub-list for method output_type + 25, // [25:25] is the sub-list for method input_type + 25, // [25:25] is the sub-list for extension type_name + 25, // [25:25] is the sub-list for extension extendee + 0, // [0:25] is the sub-list for field type_name } func init() { file_spacemesh_v1_admin_types_proto_init() } diff --git a/spacemesh/v1/admin_types.proto b/spacemesh/v1/admin_types.proto index 9c2368ec..0d054ea5 100644 --- a/spacemesh/v1/admin_types.proto +++ b/spacemesh/v1/admin_types.proto @@ -79,12 +79,14 @@ message EventPoetWaitRound { uint32 current = 1; uint32 publish = 2; google.protobuf.Duration wait = 3; + google.protobuf.Timestamp until = 4; } message EventPoetWaitProof { uint32 publish = 1; uint32 target = 2; google.protobuf.Duration wait = 3; + google.protobuf.Timestamp until = 4; } message EventAtxPubished { @@ -92,6 +94,7 @@ message EventAtxPubished { uint32 target = 2; bytes id = 3; google.protobuf.Duration wait = 4; + google.protobuf.Timestamp until = 5; } message EventEligibilities { From 66d3453e8d04cd2eae4bf00f7d6bb042b47a0339 Mon Sep 17 00:00:00 2001 From: earl Date: Fri, 29 Dec 2023 21:16:29 +0100 Subject: [PATCH 14/20] Fix indentation --- spacemesh/v1/admin_types.proto | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/spacemesh/v1/admin_types.proto b/spacemesh/v1/admin_types.proto index 0d054ea5..79c4c0e0 100644 --- a/spacemesh/v1/admin_types.proto +++ b/spacemesh/v1/admin_types.proto @@ -117,19 +117,19 @@ message EventProposal { } message EventMalfeasance { - MalfeasanceProof proof = 1; + MalfeasanceProof proof = 1; } message EventStreamRequest {} message ConnectionInfo { - string address = 1; - google.protobuf.Duration uptime = 2; - bool outbound = 3; + string address = 1; + google.protobuf.Duration uptime = 2; + bool outbound = 3; } message PeerInfo { - string id = 1; - repeated ConnectionInfo connections = 2; - repeated string tags = 4; + string id = 1; + repeated ConnectionInfo connections = 2; + repeated string tags = 4; } From 29df555e9056b139cb83591424148d753be3eda4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 24 Jan 2024 15:50:28 +0000 Subject: [PATCH 15/20] Bump google.golang.org/grpc from 1.60.1 to 1.61.0 in /release/go Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.60.1 to 1.61.0. - [Release notes](https://github.com/grpc/grpc-go/releases) - [Commits](https://github.com/grpc/grpc-go/compare/v1.60.1...v1.61.0) --- updated-dependencies: - dependency-name: google.golang.org/grpc dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- release/go/go.mod | 2 +- release/go/go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/release/go/go.mod b/release/go/go.mod index f1f76813..a4d62020 100644 --- a/release/go/go.mod +++ b/release/go/go.mod @@ -6,7 +6,7 @@ require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.0 google.golang.org/genproto/googleapis/api v0.0.0-20240102182953-50ed04b92917 google.golang.org/genproto/googleapis/rpc v0.0.0-20240102182953-50ed04b92917 - google.golang.org/grpc v1.60.1 + google.golang.org/grpc v1.61.0 google.golang.org/protobuf v1.32.0 ) diff --git a/release/go/go.sum b/release/go/go.sum index 412a6a4e..c5844b18 100644 --- a/release/go/go.sum +++ b/release/go/go.sum @@ -18,8 +18,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240102182953-50ed04b92917 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240102182953-50ed04b92917/go.mod h1:CmlNWB9lSezaYELKS5Ym1r44VrrbPUa7JTvw+6MbpJ0= google.golang.org/genproto/googleapis/rpc v0.0.0-20240102182953-50ed04b92917 h1:6G8oQ016D88m1xAKljMlBOOGWDZkes4kMhgGFlf8WcQ= google.golang.org/genproto/googleapis/rpc v0.0.0-20240102182953-50ed04b92917/go.mod h1:xtjpI3tXFPP051KaWnhvxkiubL/6dJ18vLVf7q2pTOU= -google.golang.org/grpc v1.60.1 h1:26+wFr+cNqSGFcOXcabYC0lUVJVRa2Sb2ortSK7VrEU= -google.golang.org/grpc v1.60.1/go.mod h1:OlCHIeLYqSSsLi6i49B5QGdzaMZK9+M7LXN2FKz4eGM= +google.golang.org/grpc v1.61.0 h1:TOvOcuXn30kRao+gfcvsebNEa5iZIiLkisYEkf7R7o0= +google.golang.org/grpc v1.61.0/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= From 7d9ab29220f968f01efdf598939066114441f684 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 30 Jan 2024 15:11:53 +0000 Subject: [PATCH 16/20] Bump github.com/grpc-ecosystem/grpc-gateway/v2 in /release/go Bumps [github.com/grpc-ecosystem/grpc-gateway/v2](https://github.com/grpc-ecosystem/grpc-gateway) from 2.19.0 to 2.19.1. - [Release notes](https://github.com/grpc-ecosystem/grpc-gateway/releases) - [Changelog](https://github.com/grpc-ecosystem/grpc-gateway/blob/main/.goreleaser.yml) - [Commits](https://github.com/grpc-ecosystem/grpc-gateway/compare/v2.19.0...v2.19.1) --- updated-dependencies: - dependency-name: github.com/grpc-ecosystem/grpc-gateway/v2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- release/go/go.mod | 12 ++++++------ release/go/go.sum | 24 ++++++++++++------------ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/release/go/go.mod b/release/go/go.mod index a4d62020..823a9a16 100644 --- a/release/go/go.mod +++ b/release/go/go.mod @@ -3,17 +3,17 @@ module github.com/spacemeshos/api/release/go go 1.20 require ( - github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.0 - google.golang.org/genproto/googleapis/api v0.0.0-20240102182953-50ed04b92917 - google.golang.org/genproto/googleapis/rpc v0.0.0-20240102182953-50ed04b92917 + github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 + google.golang.org/genproto/googleapis/api v0.0.0-20240125205218-1f4bbc51befe + google.golang.org/genproto/googleapis/rpc v0.0.0-20240125205218-1f4bbc51befe google.golang.org/grpc v1.61.0 google.golang.org/protobuf v1.32.0 ) require ( github.com/golang/protobuf v1.5.3 // indirect - golang.org/x/net v0.19.0 // indirect - golang.org/x/sys v0.15.0 // indirect + golang.org/x/net v0.20.0 // indirect + golang.org/x/sys v0.16.0 // indirect golang.org/x/text v0.14.0 // indirect - google.golang.org/genproto v0.0.0-20231212172506-995d672761c0 // indirect + google.golang.org/genproto v0.0.0-20240116215550-a9fa1716bcac // indirect ) diff --git a/release/go/go.sum b/release/go/go.sum index c5844b18..c79ee5e0 100644 --- a/release/go/go.sum +++ b/release/go/go.sum @@ -3,21 +3,21 @@ github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.0 h1:Wqo399gCIufwto+VfwCSvsnfGpF/w5E9CNxSwbpD6No= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.0/go.mod h1:qmOFXW2epJhM0qSnUUYpldc7gVz2KMQwJ/QYCDIa7XU= -golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= -golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= -golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= -golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 h1:/c3QmbOGMGTOumP2iT/rCwB7b0QDGLKzqOmktBjT+Is= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1/go.mod h1:5SN9VR2LTsRFsrEC6FHgRbTWrTHu6tqPeKxEQv15giM= +golang.org/x/net v0.20.0 h1:aCL9BSgETF1k+blQaYUBx9hJ9LOGP3gAVemcZlf1Kpo= +golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY= +golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU= +golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/genproto v0.0.0-20231212172506-995d672761c0 h1:YJ5pD9rF8o9Qtta0Cmy9rdBwkSjrTCT6XTiUQVOtIos= -google.golang.org/genproto v0.0.0-20231212172506-995d672761c0/go.mod h1:l/k7rMz0vFTBPy+tFSGvXEd3z+BcoG1k7EHbqm+YBsY= -google.golang.org/genproto/googleapis/api v0.0.0-20240102182953-50ed04b92917 h1:rcS6EyEaoCO52hQDupoSfrxI3R6C2Tq741is7X8OvnM= -google.golang.org/genproto/googleapis/api v0.0.0-20240102182953-50ed04b92917/go.mod h1:CmlNWB9lSezaYELKS5Ym1r44VrrbPUa7JTvw+6MbpJ0= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240102182953-50ed04b92917 h1:6G8oQ016D88m1xAKljMlBOOGWDZkes4kMhgGFlf8WcQ= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240102182953-50ed04b92917/go.mod h1:xtjpI3tXFPP051KaWnhvxkiubL/6dJ18vLVf7q2pTOU= +google.golang.org/genproto v0.0.0-20240116215550-a9fa1716bcac h1:ZL/Teoy/ZGnzyrqK/Optxxp2pmVh+fmJ97slxSRyzUg= +google.golang.org/genproto v0.0.0-20240116215550-a9fa1716bcac/go.mod h1:+Rvu7ElI+aLzyDQhpHMFMMltsD6m7nqpuWDd2CwJw3k= +google.golang.org/genproto/googleapis/api v0.0.0-20240125205218-1f4bbc51befe h1:0poefMBYvYbs7g5UkjS6HcxBPaTRAmznle9jnxYoAI8= +google.golang.org/genproto/googleapis/api v0.0.0-20240125205218-1f4bbc51befe/go.mod h1:4jWUdICTdgc3Ibxmr8nAJiiLHwQBY0UI0XZcEMaFKaA= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240125205218-1f4bbc51befe h1:bQnxqljG/wqi4NTXu2+DJ3n7APcEA882QZ1JvhQAq9o= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240125205218-1f4bbc51befe/go.mod h1:PAREbraiVEVGVdTZsVWjSbbTtSyGbAgIIvni8a8CD5s= google.golang.org/grpc v1.61.0 h1:TOvOcuXn30kRao+gfcvsebNEa5iZIiLkisYEkf7R7o0= google.golang.org/grpc v1.61.0/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= From 289cab282505222bc5692839adf6aad693e997ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20R=C3=B3=C5=BCa=C5=84ski?= Date: Fri, 12 Jan 2024 13:20:20 +0100 Subject: [PATCH 17/20] Add POST_INDEX malfeasance proof --- release/go/spacemesh/v1/types.pb.go | 46 ++++++++++++++++------------- spacemesh/v1/types.proto | 1 + 2 files changed, 26 insertions(+), 21 deletions(-) diff --git a/release/go/spacemesh/v1/types.pb.go b/release/go/spacemesh/v1/types.pb.go index 3c1aafe7..8a802c82 100644 --- a/release/go/spacemesh/v1/types.pb.go +++ b/release/go/spacemesh/v1/types.pb.go @@ -79,6 +79,7 @@ const ( MalfeasanceProof_MALFEASANCE_ATX MalfeasanceProof_MalfeasanceType = 1 MalfeasanceProof_MALFEASANCE_BALLOT MalfeasanceProof_MalfeasanceType = 2 MalfeasanceProof_MALFEASANCE_HARE MalfeasanceProof_MalfeasanceType = 3 + MalfeasanceProof_MALFEASANCE_POST_INDEX MalfeasanceProof_MalfeasanceType = 4 ) // Enum value maps for MalfeasanceProof_MalfeasanceType. @@ -88,12 +89,14 @@ var ( 1: "MALFEASANCE_ATX", 2: "MALFEASANCE_BALLOT", 3: "MALFEASANCE_HARE", + 4: "MALFEASANCE_POST_INDEX", } MalfeasanceProof_MalfeasanceType_value = map[string]int32{ "MALFEASANCE_UNSPECIFIED": 0, "MALFEASANCE_ATX": 1, "MALFEASANCE_BALLOT": 2, "MALFEASANCE_HARE": 3, + "MALFEASANCE_POST_INDEX": 4, } ) @@ -1459,7 +1462,7 @@ var file_spacemesh_v1_types_proto_rawDesc = []byte{ 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x52, 0x0d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xe7, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x84, 0x03, 0x0a, 0x10, 0x4d, 0x61, 0x6c, 0x66, 0x65, 0x61, 0x73, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x36, 0x0a, 0x0a, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, @@ -1475,26 +1478,27 @@ var file_spacemesh_v1_types_proto_rawDesc = []byte{ 0x1d, 0x0a, 0x0a, 0x64, 0x65, 0x62, 0x75, 0x67, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x64, 0x65, 0x62, 0x75, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x70, - 0x72, 0x6f, 0x6f, 0x66, 0x22, 0x71, 0x0a, 0x0f, 0x4d, 0x61, 0x6c, 0x66, 0x65, 0x61, 0x73, 0x61, - 0x6e, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x4d, 0x41, 0x4c, 0x46, 0x45, - 0x41, 0x53, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, - 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x4d, 0x41, 0x4c, 0x46, 0x45, 0x41, 0x53, 0x41, - 0x4e, 0x43, 0x45, 0x5f, 0x41, 0x54, 0x58, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x4d, 0x41, 0x4c, - 0x46, 0x45, 0x41, 0x53, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x42, 0x41, 0x4c, 0x4c, 0x4f, 0x54, 0x10, - 0x02, 0x12, 0x14, 0x0a, 0x10, 0x4d, 0x41, 0x4c, 0x46, 0x45, 0x41, 0x53, 0x41, 0x4e, 0x43, 0x45, - 0x5f, 0x48, 0x41, 0x52, 0x45, 0x10, 0x03, 0x42, 0xaf, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x54, 0x79, - 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, - 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x67, - 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, 0x3b, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x58, 0x58, - 0xaa, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x56, 0x31, 0xca, - 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0xe2, 0x02, - 0x18, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, - 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x53, 0x70, 0x61, 0x63, - 0x65, 0x6d, 0x65, 0x73, 0x68, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x72, 0x6f, 0x6f, 0x66, 0x22, 0x8d, 0x01, 0x0a, 0x0f, 0x4d, 0x61, 0x6c, 0x66, 0x65, 0x61, 0x73, + 0x61, 0x6e, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x4d, 0x41, 0x4c, 0x46, + 0x45, 0x41, 0x53, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, + 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x4d, 0x41, 0x4c, 0x46, 0x45, 0x41, 0x53, + 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x41, 0x54, 0x58, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x4d, 0x41, + 0x4c, 0x46, 0x45, 0x41, 0x53, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x42, 0x41, 0x4c, 0x4c, 0x4f, 0x54, + 0x10, 0x02, 0x12, 0x14, 0x0a, 0x10, 0x4d, 0x41, 0x4c, 0x46, 0x45, 0x41, 0x53, 0x41, 0x4e, 0x43, + 0x45, 0x5f, 0x48, 0x41, 0x52, 0x45, 0x10, 0x03, 0x12, 0x1a, 0x0a, 0x16, 0x4d, 0x41, 0x4c, 0x46, + 0x45, 0x41, 0x53, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x4f, 0x53, 0x54, 0x5f, 0x49, 0x4e, 0x44, + 0x45, 0x58, 0x10, 0x04, 0x42, 0xaf, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x6f, 0x73, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x67, 0x6f, 0x2f, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x6d, 0x65, 0x73, 0x68, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x58, 0x58, 0xaa, 0x02, 0x0c, + 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x53, + 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x53, 0x70, + 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, + 0x73, 0x68, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/spacemesh/v1/types.proto b/spacemesh/v1/types.proto index e7254ed6..f1ae5fce 100644 --- a/spacemesh/v1/types.proto +++ b/spacemesh/v1/types.proto @@ -126,6 +126,7 @@ message MalfeasanceProof { MALFEASANCE_ATX = 1; MALFEASANCE_BALLOT = 2; MALFEASANCE_HARE = 3; + MALFEASANCE_POST_INDEX = 4; } MalfeasanceType kind = 3; string debug_info = 4; From 3c4d8451b3a3e552c5346b40529c28cb1fbfaf72 Mon Sep 17 00:00:00 2001 From: Matthias <5011972+fasmat@users.noreply.github.com> Date: Wed, 31 Jan 2024 09:21:02 +0000 Subject: [PATCH 18/20] Extend API for multismesher node --- release/go/spacemesh/v1/admin_types.pb.go | 202 ++++----- release/go/spacemesh/v1/smesher.pb.go | 236 +++++------ release/go/spacemesh/v1/smesher.pb.gw.go | 69 ++++ release/go/spacemesh/v1/smesher_grpc.pb.go | 42 ++ release/go/spacemesh/v1/smesher_types.pb.go | 429 +++++++++++--------- spacemesh/v1/admin_types.proto | 2 + spacemesh/v1/smesher.proto | 8 + spacemesh/v1/smesher_types.proto | 4 + 8 files changed, 605 insertions(+), 387 deletions(-) diff --git a/release/go/spacemesh/v1/admin_types.pb.go b/release/go/spacemesh/v1/admin_types.pb.go index 3051d3c1..1b18a9f3 100644 --- a/release/go/spacemesh/v1/admin_types.pb.go +++ b/release/go/spacemesh/v1/admin_types.pb.go @@ -748,6 +748,7 @@ type EventPostStart struct { unknownFields protoimpl.UnknownFields Challenge []byte `protobuf:"bytes,1,opt,name=challenge,proto3" json:"challenge,omitempty"` + Smesher []byte `protobuf:"bytes,2,opt,name=smesher,proto3" json:"smesher,omitempty"` } func (x *EventPostStart) Reset() { @@ -789,12 +790,20 @@ func (x *EventPostStart) GetChallenge() []byte { return nil } +func (x *EventPostStart) GetSmesher() []byte { + if x != nil { + return x.Smesher + } + return nil +} + type EventPostComplete struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Challenge []byte `protobuf:"bytes,1,opt,name=challenge,proto3" json:"challenge,omitempty"` + Smesher []byte `protobuf:"bytes,2,opt,name=smesher,proto3" json:"smesher,omitempty"` } func (x *EventPostComplete) Reset() { @@ -836,6 +845,13 @@ func (x *EventPostComplete) GetChallenge() []byte { return nil } +func (x *EventPostComplete) GetSmesher() []byte { + if x != nil { + return x.Smesher + } + return nil +} + type EventPoetWaitRound struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1572,99 +1588,103 @@ var file_spacemesh_v1_admin_types_proto_rawDesc = []byte{ 0x22, 0x19, 0x0a, 0x17, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x22, 0x19, 0x0a, 0x17, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x53, - 0x74, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x22, 0x2e, 0x0a, 0x0e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, + 0x74, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x22, 0x48, 0x0a, 0x0e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x68, 0x61, - 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x22, 0x31, 0x0a, 0x11, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, - 0x6f, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, - 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, - 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x22, 0xa9, 0x01, 0x0a, 0x12, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x50, 0x6f, 0x65, 0x74, 0x57, 0x61, 0x69, 0x74, 0x52, 0x6f, 0x75, 0x6e, 0x64, - 0x12, 0x18, 0x0a, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x75, - 0x62, 0x6c, 0x69, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x70, 0x75, 0x62, - 0x6c, 0x69, 0x73, 0x68, 0x12, 0x2d, 0x0a, 0x04, 0x77, 0x61, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x77, - 0x61, 0x69, 0x74, 0x12, 0x30, 0x0a, 0x05, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, - 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x22, 0xa7, 0x01, 0x0a, 0x12, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, - 0x6f, 0x65, 0x74, 0x57, 0x61, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x18, 0x0a, 0x07, - 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x70, - 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x2d, - 0x0a, 0x04, 0x77, 0x61, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x77, 0x61, 0x69, 0x74, 0x12, 0x30, 0x0a, - 0x05, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x22, - 0xb5, 0x01, 0x0a, 0x10, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x78, 0x50, 0x75, 0x62, 0x69, - 0x73, 0x68, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x16, - 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, - 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2d, 0x0a, 0x04, 0x77, 0x61, 0x69, 0x74, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x04, 0x77, 0x61, 0x69, 0x74, 0x12, 0x30, 0x0a, 0x05, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x52, 0x05, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x22, 0xc5, 0x01, 0x0a, 0x12, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x45, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x14, - 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x65, - 0x70, 0x6f, 0x63, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, - 0x61, 0x74, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x61, 0x74, 0x78, 0x12, 0x26, - 0x0a, 0x0f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x69, 0x7a, - 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x53, - 0x65, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x47, 0x0a, 0x0d, 0x65, 0x6c, 0x69, 0x67, 0x69, 0x62, - 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x45, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, - 0x52, 0x0d, 0x65, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x22, - 0x41, 0x0a, 0x13, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x45, 0x6c, 0x69, 0x67, 0x69, - 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x22, 0x41, 0x0a, 0x0d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x70, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x22, 0x48, 0x0a, 0x10, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4d, 0x61, - 0x6c, 0x66, 0x65, 0x61, 0x73, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x34, 0x0a, 0x05, 0x70, 0x72, 0x6f, - 0x6f, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x6c, 0x66, 0x65, 0x61, 0x73, 0x61, - 0x6e, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x22, - 0x14, 0x0a, 0x12, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x79, 0x0a, 0x0e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x12, 0x31, 0x0a, 0x06, 0x75, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x75, 0x70, - 0x74, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, - 0x22, 0x6e, 0x0a, 0x08, 0x50, 0x65, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3e, 0x0a, 0x0b, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x1c, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, - 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, - 0x0b, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, - 0x74, 0x61, 0x67, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, - 0x42, 0xb4, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, - 0x73, 0x68, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x54, 0x79, 0x70, 0x65, - 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x6f, 0x73, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x67, 0x6f, 0x2f, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x58, 0x58, 0xaa, 0x02, - 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, - 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x53, - 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, - 0x65, 0x73, 0x68, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, + 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, + 0x22, 0x4b, 0x0a, 0x11, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x6f, 0x73, 0x74, 0x43, 0x6f, 0x6d, + 0x70, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, + 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, + 0x6e, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x22, 0xa9, 0x01, + 0x0a, 0x12, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x6f, 0x65, 0x74, 0x57, 0x61, 0x69, 0x74, 0x52, + 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x18, + 0x0a, 0x07, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x07, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x12, 0x2d, 0x0a, 0x04, 0x77, 0x61, 0x69, 0x74, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x04, 0x77, 0x61, 0x69, 0x74, 0x12, 0x30, 0x0a, 0x05, 0x75, 0x6e, 0x74, 0x69, 0x6c, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x05, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x22, 0xa7, 0x01, 0x0a, 0x12, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x50, 0x6f, 0x65, 0x74, 0x57, 0x61, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, + 0x12, 0x18, 0x0a, 0x07, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x07, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, + 0x72, 0x67, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, + 0x65, 0x74, 0x12, 0x2d, 0x0a, 0x04, 0x77, 0x61, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x77, 0x61, 0x69, + 0x74, 0x12, 0x30, 0x0a, 0x05, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, 0x75, 0x6e, + 0x74, 0x69, 0x6c, 0x22, 0xb5, 0x01, 0x0a, 0x10, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x78, + 0x50, 0x75, 0x62, 0x69, 0x73, 0x68, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x75, 0x72, 0x72, + 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, + 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2d, 0x0a, 0x04, 0x77, 0x61, + 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x77, 0x61, 0x69, 0x74, 0x12, 0x30, 0x0a, 0x05, 0x75, 0x6e, 0x74, + 0x69, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x22, 0xc5, 0x01, 0x0a, 0x12, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x45, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, + 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x65, 0x61, 0x63, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, + 0x12, 0x10, 0x0a, 0x03, 0x61, 0x74, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x61, + 0x74, 0x78, 0x12, 0x26, 0x0a, 0x0f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x73, 0x65, 0x74, + 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x61, 0x63, 0x74, + 0x69, 0x76, 0x65, 0x53, 0x65, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x47, 0x0a, 0x0d, 0x65, 0x6c, + 0x69, 0x67, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x21, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, + 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x45, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x52, 0x0d, 0x65, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x69, 0x65, 0x73, 0x22, 0x41, 0x0a, 0x13, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x45, + 0x6c, 0x69, 0x67, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, + 0x79, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x61, 0x79, 0x65, 0x72, + 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x41, 0x0a, 0x0d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, + 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x79, 0x65, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x12, 0x1a, 0x0a, + 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x22, 0x48, 0x0a, 0x10, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x4d, 0x61, 0x6c, 0x66, 0x65, 0x61, 0x73, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x34, 0x0a, + 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x6c, 0x66, + 0x65, 0x61, 0x73, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x05, 0x70, 0x72, + 0x6f, 0x6f, 0x66, 0x22, 0x14, 0x0a, 0x12, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x72, 0x65, + 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x79, 0x0a, 0x0e, 0x43, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x75, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x06, 0x75, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x75, 0x74, 0x62, + 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6f, 0x75, 0x74, 0x62, + 0x6f, 0x75, 0x6e, 0x64, 0x22, 0x6e, 0x0a, 0x08, 0x50, 0x65, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x3e, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, + 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, + 0x6e, 0x66, 0x6f, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, + 0x74, 0x61, 0x67, 0x73, 0x42, 0xb4, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x41, 0x64, 0x6d, 0x69, 0x6e, + 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, + 0x73, 0x68, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, + 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, + 0x3b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, + 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x56, + 0x31, 0xca, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, + 0xe2, 0x02, 0x18, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x53, 0x70, + 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( diff --git a/release/go/spacemesh/v1/smesher.pb.go b/release/go/spacemesh/v1/smesher.pb.go index ca05ac0f..ff926561 100644 --- a/release/go/spacemesh/v1/smesher.pb.go +++ b/release/go/spacemesh/v1/smesher.pb.go @@ -32,7 +32,7 @@ var file_spacemesh_v1_smesher_proto_rawDesc = []byte{ 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xe3, 0x0b, 0x0a, 0x0e, 0x53, 0x6d, 0x65, 0x73, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xce, 0x0c, 0x0a, 0x0e, 0x53, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x66, 0x0a, 0x0a, 0x49, 0x73, 0x53, 0x6d, 0x65, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, @@ -55,90 +55,97 @@ var file_spacemesh_v1_smesher_proto_rawDesc = []byte{ 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x53, 0x6d, 0x65, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x3a, 0x01, 0x2a, 0x22, 0x18, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, - 0x72, 0x2f, 0x73, 0x74, 0x6f, 0x70, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x12, 0x63, + 0x72, 0x2f, 0x73, 0x74, 0x6f, 0x70, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x12, 0x66, 0x0a, 0x09, 0x53, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x49, 0x44, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1f, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x22, 0x15, 0x2f, 0x76, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x22, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x2f, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, - 0x72, 0x69, 0x64, 0x12, 0x60, 0x0a, 0x08, 0x43, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x12, - 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1e, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, - 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x22, - 0x14, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x69, - 0x6e, 0x62, 0x61, 0x73, 0x65, 0x12, 0x76, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x69, 0x6e, - 0x62, 0x61, 0x73, 0x65, 0x12, 0x20, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, - 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, - 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x1c, 0x3a, 0x01, 0x2a, 0x22, 0x17, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, - 0x72, 0x2f, 0x73, 0x65, 0x74, 0x63, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x12, 0x5a, 0x0a, - 0x06, 0x4d, 0x69, 0x6e, 0x47, 0x61, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, - 0x1c, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4d, - 0x69, 0x6e, 0x47, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1a, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x22, 0x12, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x6d, 0x65, 0x73, 0x68, - 0x65, 0x72, 0x2f, 0x6d, 0x69, 0x6e, 0x67, 0x61, 0x73, 0x12, 0x6e, 0x0a, 0x09, 0x53, 0x65, 0x74, - 0x4d, 0x69, 0x6e, 0x47, 0x61, 0x73, 0x12, 0x1e, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, - 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x4d, 0x69, 0x6e, 0x47, 0x61, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, - 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x4d, 0x69, 0x6e, 0x47, 0x61, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x3a, - 0x01, 0x2a, 0x22, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x2f, - 0x73, 0x65, 0x74, 0x6d, 0x69, 0x6e, 0x67, 0x61, 0x73, 0x12, 0x8a, 0x01, 0x0a, 0x10, 0x45, 0x73, - 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x12, 0x25, - 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x73, - 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, - 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, - 0x77, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x27, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x3a, 0x01, 0x2a, 0x22, 0x1c, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x6d, - 0x65, 0x73, 0x68, 0x65, 0x72, 0x2f, 0x65, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x64, 0x72, - 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x12, 0x75, 0x0a, 0x0f, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x65, - 0x74, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, - 0x79, 0x1a, 0x25, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, - 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x74, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, - 0x22, 0x1b, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x2f, 0x70, 0x6f, - 0x73, 0x74, 0x73, 0x65, 0x74, 0x75, 0x70, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x5e, 0x0a, - 0x15, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x74, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x2b, - 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, - 0x73, 0x74, 0x53, 0x65, 0x74, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x53, 0x74, 0x72, - 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x92, 0x01, - 0x0a, 0x12, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x74, 0x75, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x73, 0x12, 0x27, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, - 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x74, 0x75, 0x70, 0x50, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, - 0x74, 0x53, 0x65, 0x74, 0x75, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x3a, - 0x01, 0x2a, 0x22, 0x1e, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x2f, - 0x70, 0x6f, 0x73, 0x74, 0x73, 0x65, 0x74, 0x75, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x73, 0x12, 0x69, 0x0a, 0x0a, 0x50, 0x6f, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x20, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x1b, 0x3a, 0x01, 0x2a, 0x22, 0x16, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x6d, 0x65, 0x73, 0x68, - 0x65, 0x72, 0x2f, 0x70, 0x6f, 0x73, 0x74, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0xb1, 0x01, - 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, - 0x76, 0x31, 0x42, 0x0c, 0x53, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, - 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, - 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, - 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, - 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, - 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, - 0x73, 0x68, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0xea, 0x02, 0x0d, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x3a, 0x3a, 0x56, - 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x72, 0x69, 0x64, 0x88, 0x02, 0x01, 0x12, 0x66, 0x0a, 0x0a, 0x53, 0x6d, 0x65, 0x73, 0x68, 0x65, + 0x72, 0x49, 0x44, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x20, 0x2e, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6d, 0x65, 0x73, + 0x68, 0x65, 0x72, 0x49, 0x44, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x22, 0x16, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x6d, 0x65, 0x73, + 0x68, 0x65, 0x72, 0x2f, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x69, 0x64, 0x73, 0x12, 0x60, + 0x0a, 0x08, 0x43, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, + 0x74, 0x79, 0x1a, 0x1e, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, + 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x1c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x22, 0x14, 0x2f, 0x76, 0x31, 0x2f, + 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, + 0x12, 0x76, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x12, + 0x20, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x53, + 0x65, 0x74, 0x43, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x21, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, + 0x2e, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x3a, 0x01, 0x2a, 0x22, + 0x17, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x2f, 0x73, 0x65, 0x74, + 0x63, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x06, 0x4d, 0x69, 0x6e, 0x47, + 0x61, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1c, 0x2e, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x6e, 0x47, 0x61, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, + 0x22, 0x12, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x2f, 0x6d, 0x69, + 0x6e, 0x67, 0x61, 0x73, 0x12, 0x6e, 0x0a, 0x09, 0x53, 0x65, 0x74, 0x4d, 0x69, 0x6e, 0x47, 0x61, + 0x73, 0x12, 0x1e, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, + 0x2e, 0x53, 0x65, 0x74, 0x4d, 0x69, 0x6e, 0x47, 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1f, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, + 0x2e, 0x53, 0x65, 0x74, 0x4d, 0x69, 0x6e, 0x47, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x3a, 0x01, 0x2a, 0x22, 0x15, 0x2f, + 0x76, 0x31, 0x2f, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x2f, 0x73, 0x65, 0x74, 0x6d, 0x69, + 0x6e, 0x67, 0x61, 0x73, 0x12, 0x8a, 0x01, 0x0a, 0x10, 0x45, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, + 0x65, 0x64, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x12, 0x25, 0x2e, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, + 0x65, 0x64, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x26, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, + 0x45, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, + 0x3a, 0x01, 0x2a, 0x22, 0x1c, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, + 0x2f, 0x65, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x64, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, + 0x73, 0x12, 0x75, 0x0a, 0x0f, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x74, 0x75, 0x70, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x25, 0x2e, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x74, + 0x53, 0x65, 0x74, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x22, 0x1b, 0x2f, 0x76, 0x31, + 0x2f, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x2f, 0x70, 0x6f, 0x73, 0x74, 0x73, 0x65, 0x74, + 0x75, 0x70, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x5e, 0x0a, 0x15, 0x50, 0x6f, 0x73, 0x74, + 0x53, 0x65, 0x74, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, + 0x6d, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x2b, 0x2e, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x74, + 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x92, 0x01, 0x0a, 0x12, 0x50, 0x6f, 0x73, + 0x74, 0x53, 0x65, 0x74, 0x75, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, + 0x27, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, + 0x6f, 0x73, 0x74, 0x53, 0x65, 0x74, 0x75, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x74, 0x75, + 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x3a, 0x01, 0x2a, 0x22, 0x1e, 0x2f, + 0x76, 0x31, 0x2f, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x2f, 0x70, 0x6f, 0x73, 0x74, 0x73, + 0x65, 0x74, 0x75, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x69, 0x0a, + 0x0a, 0x50, 0x6f, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, + 0x70, 0x74, 0x79, 0x1a, 0x20, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, + 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x3a, 0x01, 0x2a, + 0x22, 0x16, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x2f, 0x70, 0x6f, + 0x73, 0x74, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0xb1, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, + 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x53, + 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, + 0x65, 0x73, 0x68, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, + 0x65, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, + 0x31, 0x3b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x76, 0x31, 0xa2, 0x02, 0x03, + 0x53, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, + 0x56, 0x31, 0xca, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, + 0x31, 0xe2, 0x02, 0x18, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x53, + 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var file_spacemesh_v1_smesher_proto_goTypes = []interface{}{ @@ -153,45 +160,48 @@ var file_spacemesh_v1_smesher_proto_goTypes = []interface{}{ (*StartSmeshingResponse)(nil), // 8: spacemesh.v1.StartSmeshingResponse (*StopSmeshingResponse)(nil), // 9: spacemesh.v1.StopSmeshingResponse (*SmesherIDResponse)(nil), // 10: spacemesh.v1.SmesherIDResponse - (*CoinbaseResponse)(nil), // 11: spacemesh.v1.CoinbaseResponse - (*SetCoinbaseResponse)(nil), // 12: spacemesh.v1.SetCoinbaseResponse - (*MinGasResponse)(nil), // 13: spacemesh.v1.MinGasResponse - (*SetMinGasResponse)(nil), // 14: spacemesh.v1.SetMinGasResponse - (*EstimatedRewardsResponse)(nil), // 15: spacemesh.v1.EstimatedRewardsResponse - (*PostSetupStatusResponse)(nil), // 16: spacemesh.v1.PostSetupStatusResponse - (*PostSetupStatusStreamResponse)(nil), // 17: spacemesh.v1.PostSetupStatusStreamResponse - (*PostSetupProvidersResponse)(nil), // 18: spacemesh.v1.PostSetupProvidersResponse - (*PostConfigResponse)(nil), // 19: spacemesh.v1.PostConfigResponse + (*SmesherIDsResponse)(nil), // 11: spacemesh.v1.SmesherIDsResponse + (*CoinbaseResponse)(nil), // 12: spacemesh.v1.CoinbaseResponse + (*SetCoinbaseResponse)(nil), // 13: spacemesh.v1.SetCoinbaseResponse + (*MinGasResponse)(nil), // 14: spacemesh.v1.MinGasResponse + (*SetMinGasResponse)(nil), // 15: spacemesh.v1.SetMinGasResponse + (*EstimatedRewardsResponse)(nil), // 16: spacemesh.v1.EstimatedRewardsResponse + (*PostSetupStatusResponse)(nil), // 17: spacemesh.v1.PostSetupStatusResponse + (*PostSetupStatusStreamResponse)(nil), // 18: spacemesh.v1.PostSetupStatusStreamResponse + (*PostSetupProvidersResponse)(nil), // 19: spacemesh.v1.PostSetupProvidersResponse + (*PostConfigResponse)(nil), // 20: spacemesh.v1.PostConfigResponse } var file_spacemesh_v1_smesher_proto_depIdxs = []int32{ 0, // 0: spacemesh.v1.SmesherService.IsSmeshing:input_type -> google.protobuf.Empty 1, // 1: spacemesh.v1.SmesherService.StartSmeshing:input_type -> spacemesh.v1.StartSmeshingRequest 2, // 2: spacemesh.v1.SmesherService.StopSmeshing:input_type -> spacemesh.v1.StopSmeshingRequest 0, // 3: spacemesh.v1.SmesherService.SmesherID:input_type -> google.protobuf.Empty - 0, // 4: spacemesh.v1.SmesherService.Coinbase:input_type -> google.protobuf.Empty - 3, // 5: spacemesh.v1.SmesherService.SetCoinbase:input_type -> spacemesh.v1.SetCoinbaseRequest - 0, // 6: spacemesh.v1.SmesherService.MinGas:input_type -> google.protobuf.Empty - 4, // 7: spacemesh.v1.SmesherService.SetMinGas:input_type -> spacemesh.v1.SetMinGasRequest - 5, // 8: spacemesh.v1.SmesherService.EstimatedRewards:input_type -> spacemesh.v1.EstimatedRewardsRequest - 0, // 9: spacemesh.v1.SmesherService.PostSetupStatus:input_type -> google.protobuf.Empty - 0, // 10: spacemesh.v1.SmesherService.PostSetupStatusStream:input_type -> google.protobuf.Empty - 6, // 11: spacemesh.v1.SmesherService.PostSetupProviders:input_type -> spacemesh.v1.PostSetupProvidersRequest - 0, // 12: spacemesh.v1.SmesherService.PostConfig:input_type -> google.protobuf.Empty - 7, // 13: spacemesh.v1.SmesherService.IsSmeshing:output_type -> spacemesh.v1.IsSmeshingResponse - 8, // 14: spacemesh.v1.SmesherService.StartSmeshing:output_type -> spacemesh.v1.StartSmeshingResponse - 9, // 15: spacemesh.v1.SmesherService.StopSmeshing:output_type -> spacemesh.v1.StopSmeshingResponse - 10, // 16: spacemesh.v1.SmesherService.SmesherID:output_type -> spacemesh.v1.SmesherIDResponse - 11, // 17: spacemesh.v1.SmesherService.Coinbase:output_type -> spacemesh.v1.CoinbaseResponse - 12, // 18: spacemesh.v1.SmesherService.SetCoinbase:output_type -> spacemesh.v1.SetCoinbaseResponse - 13, // 19: spacemesh.v1.SmesherService.MinGas:output_type -> spacemesh.v1.MinGasResponse - 14, // 20: spacemesh.v1.SmesherService.SetMinGas:output_type -> spacemesh.v1.SetMinGasResponse - 15, // 21: spacemesh.v1.SmesherService.EstimatedRewards:output_type -> spacemesh.v1.EstimatedRewardsResponse - 16, // 22: spacemesh.v1.SmesherService.PostSetupStatus:output_type -> spacemesh.v1.PostSetupStatusResponse - 17, // 23: spacemesh.v1.SmesherService.PostSetupStatusStream:output_type -> spacemesh.v1.PostSetupStatusStreamResponse - 18, // 24: spacemesh.v1.SmesherService.PostSetupProviders:output_type -> spacemesh.v1.PostSetupProvidersResponse - 19, // 25: spacemesh.v1.SmesherService.PostConfig:output_type -> spacemesh.v1.PostConfigResponse - 13, // [13:26] is the sub-list for method output_type - 0, // [0:13] is the sub-list for method input_type + 0, // 4: spacemesh.v1.SmesherService.SmesherIDs:input_type -> google.protobuf.Empty + 0, // 5: spacemesh.v1.SmesherService.Coinbase:input_type -> google.protobuf.Empty + 3, // 6: spacemesh.v1.SmesherService.SetCoinbase:input_type -> spacemesh.v1.SetCoinbaseRequest + 0, // 7: spacemesh.v1.SmesherService.MinGas:input_type -> google.protobuf.Empty + 4, // 8: spacemesh.v1.SmesherService.SetMinGas:input_type -> spacemesh.v1.SetMinGasRequest + 5, // 9: spacemesh.v1.SmesherService.EstimatedRewards:input_type -> spacemesh.v1.EstimatedRewardsRequest + 0, // 10: spacemesh.v1.SmesherService.PostSetupStatus:input_type -> google.protobuf.Empty + 0, // 11: spacemesh.v1.SmesherService.PostSetupStatusStream:input_type -> google.protobuf.Empty + 6, // 12: spacemesh.v1.SmesherService.PostSetupProviders:input_type -> spacemesh.v1.PostSetupProvidersRequest + 0, // 13: spacemesh.v1.SmesherService.PostConfig:input_type -> google.protobuf.Empty + 7, // 14: spacemesh.v1.SmesherService.IsSmeshing:output_type -> spacemesh.v1.IsSmeshingResponse + 8, // 15: spacemesh.v1.SmesherService.StartSmeshing:output_type -> spacemesh.v1.StartSmeshingResponse + 9, // 16: spacemesh.v1.SmesherService.StopSmeshing:output_type -> spacemesh.v1.StopSmeshingResponse + 10, // 17: spacemesh.v1.SmesherService.SmesherID:output_type -> spacemesh.v1.SmesherIDResponse + 11, // 18: spacemesh.v1.SmesherService.SmesherIDs:output_type -> spacemesh.v1.SmesherIDsResponse + 12, // 19: spacemesh.v1.SmesherService.Coinbase:output_type -> spacemesh.v1.CoinbaseResponse + 13, // 20: spacemesh.v1.SmesherService.SetCoinbase:output_type -> spacemesh.v1.SetCoinbaseResponse + 14, // 21: spacemesh.v1.SmesherService.MinGas:output_type -> spacemesh.v1.MinGasResponse + 15, // 22: spacemesh.v1.SmesherService.SetMinGas:output_type -> spacemesh.v1.SetMinGasResponse + 16, // 23: spacemesh.v1.SmesherService.EstimatedRewards:output_type -> spacemesh.v1.EstimatedRewardsResponse + 17, // 24: spacemesh.v1.SmesherService.PostSetupStatus:output_type -> spacemesh.v1.PostSetupStatusResponse + 18, // 25: spacemesh.v1.SmesherService.PostSetupStatusStream:output_type -> spacemesh.v1.PostSetupStatusStreamResponse + 19, // 26: spacemesh.v1.SmesherService.PostSetupProviders:output_type -> spacemesh.v1.PostSetupProvidersResponse + 20, // 27: spacemesh.v1.SmesherService.PostConfig:output_type -> spacemesh.v1.PostConfigResponse + 14, // [14:28] is the sub-list for method output_type + 0, // [0:14] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for field type_name diff --git a/release/go/spacemesh/v1/smesher.pb.gw.go b/release/go/spacemesh/v1/smesher.pb.gw.go index cadbebb9..a98552e5 100644 --- a/release/go/spacemesh/v1/smesher.pb.gw.go +++ b/release/go/spacemesh/v1/smesher.pb.gw.go @@ -136,6 +136,24 @@ func local_request_SmesherService_SmesherID_0(ctx context.Context, marshaler run } +func request_SmesherService_SmesherIDs_0(ctx context.Context, marshaler runtime.Marshaler, client SmesherServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq emptypb.Empty + var metadata runtime.ServerMetadata + + msg, err := client.SmesherIDs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_SmesherService_SmesherIDs_0(ctx context.Context, marshaler runtime.Marshaler, server SmesherServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq emptypb.Empty + var metadata runtime.ServerMetadata + + msg, err := server.SmesherIDs(ctx, &protoReq) + return msg, metadata, err + +} + func request_SmesherService_Coinbase_0(ctx context.Context, marshaler runtime.Marshaler, client SmesherServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq emptypb.Empty var metadata runtime.ServerMetadata @@ -491,6 +509,31 @@ func RegisterSmesherServiceHandlerServer(ctx context.Context, mux *runtime.Serve }) + mux.Handle("POST", pattern_SmesherService_SmesherIDs_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/spacemesh.v1.SmesherService/SmesherIDs", runtime.WithHTTPPathPattern("/v1/smesher/smesherids")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_SmesherService_SmesherIDs_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_SmesherService_SmesherIDs_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("POST", pattern_SmesherService_Coinbase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -827,6 +870,28 @@ func RegisterSmesherServiceHandlerClient(ctx context.Context, mux *runtime.Serve }) + mux.Handle("POST", pattern_SmesherService_SmesherIDs_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spacemesh.v1.SmesherService/SmesherIDs", runtime.WithHTTPPathPattern("/v1/smesher/smesherids")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_SmesherService_SmesherIDs_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_SmesherService_SmesherIDs_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("POST", pattern_SmesherService_Coinbase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1037,6 +1102,8 @@ var ( pattern_SmesherService_SmesherID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "smesher", "smesherid"}, "")) + pattern_SmesherService_SmesherIDs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "smesher", "smesherids"}, "")) + pattern_SmesherService_Coinbase_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "smesher", "coinbase"}, "")) pattern_SmesherService_SetCoinbase_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "smesher", "setcoinbase"}, "")) @@ -1065,6 +1132,8 @@ var ( forward_SmesherService_SmesherID_0 = runtime.ForwardResponseMessage + forward_SmesherService_SmesherIDs_0 = runtime.ForwardResponseMessage + forward_SmesherService_Coinbase_0 = runtime.ForwardResponseMessage forward_SmesherService_SetCoinbase_0 = runtime.ForwardResponseMessage diff --git a/release/go/spacemesh/v1/smesher_grpc.pb.go b/release/go/spacemesh/v1/smesher_grpc.pb.go index 2c35dfad..96934059 100644 --- a/release/go/spacemesh/v1/smesher_grpc.pb.go +++ b/release/go/spacemesh/v1/smesher_grpc.pb.go @@ -24,6 +24,7 @@ const ( SmesherService_StartSmeshing_FullMethodName = "/spacemesh.v1.SmesherService/StartSmeshing" SmesherService_StopSmeshing_FullMethodName = "/spacemesh.v1.SmesherService/StopSmeshing" SmesherService_SmesherID_FullMethodName = "/spacemesh.v1.SmesherService/SmesherID" + SmesherService_SmesherIDs_FullMethodName = "/spacemesh.v1.SmesherService/SmesherIDs" SmesherService_Coinbase_FullMethodName = "/spacemesh.v1.SmesherService/Coinbase" SmesherService_SetCoinbase_FullMethodName = "/spacemesh.v1.SmesherService/SetCoinbase" SmesherService_MinGas_FullMethodName = "/spacemesh.v1.SmesherService/MinGas" @@ -49,8 +50,11 @@ type SmesherServiceClient interface { // delete the post setup data files(s). // Returns success if request is accepted by node, failure if it fails StopSmeshing(ctx context.Context, in *StopSmeshingRequest, opts ...grpc.CallOption) (*StopSmeshingResponse, error) + // Deprecated: Do not use. // Get the current smesher id generated by the node SmesherID(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SmesherIDResponse, error) + // Get the Smesher IDs managed by the node + SmesherIDs(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SmesherIDsResponse, error) // Get the current coinbase Coinbase(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CoinbaseResponse, error) // Set the coinbase @@ -108,6 +112,7 @@ func (c *smesherServiceClient) StopSmeshing(ctx context.Context, in *StopSmeshin return out, nil } +// Deprecated: Do not use. func (c *smesherServiceClient) SmesherID(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SmesherIDResponse, error) { out := new(SmesherIDResponse) err := c.cc.Invoke(ctx, SmesherService_SmesherID_FullMethodName, in, out, opts...) @@ -117,6 +122,15 @@ func (c *smesherServiceClient) SmesherID(ctx context.Context, in *emptypb.Empty, return out, nil } +func (c *smesherServiceClient) SmesherIDs(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SmesherIDsResponse, error) { + out := new(SmesherIDsResponse) + err := c.cc.Invoke(ctx, SmesherService_SmesherIDs_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *smesherServiceClient) Coinbase(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CoinbaseResponse, error) { out := new(CoinbaseResponse) err := c.cc.Invoke(ctx, SmesherService_Coinbase_FullMethodName, in, out, opts...) @@ -235,8 +249,11 @@ type SmesherServiceServer interface { // delete the post setup data files(s). // Returns success if request is accepted by node, failure if it fails StopSmeshing(context.Context, *StopSmeshingRequest) (*StopSmeshingResponse, error) + // Deprecated: Do not use. // Get the current smesher id generated by the node SmesherID(context.Context, *emptypb.Empty) (*SmesherIDResponse, error) + // Get the Smesher IDs managed by the node + SmesherIDs(context.Context, *emptypb.Empty) (*SmesherIDsResponse, error) // Get the current coinbase Coinbase(context.Context, *emptypb.Empty) (*CoinbaseResponse, error) // Set the coinbase @@ -275,6 +292,9 @@ func (UnimplementedSmesherServiceServer) StopSmeshing(context.Context, *StopSmes func (UnimplementedSmesherServiceServer) SmesherID(context.Context, *emptypb.Empty) (*SmesherIDResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SmesherID not implemented") } +func (UnimplementedSmesherServiceServer) SmesherIDs(context.Context, *emptypb.Empty) (*SmesherIDsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SmesherIDs not implemented") +} func (UnimplementedSmesherServiceServer) Coinbase(context.Context, *emptypb.Empty) (*CoinbaseResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Coinbase not implemented") } @@ -386,6 +406,24 @@ func _SmesherService_SmesherID_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _SmesherService_SmesherIDs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(emptypb.Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SmesherServiceServer).SmesherIDs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: SmesherService_SmesherIDs_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SmesherServiceServer).SmesherIDs(ctx, req.(*emptypb.Empty)) + } + return interceptor(ctx, in, info, handler) +} + func _SmesherService_Coinbase_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(emptypb.Empty) if err := dec(in); err != nil { @@ -574,6 +612,10 @@ var SmesherService_ServiceDesc = grpc.ServiceDesc{ MethodName: "SmesherID", Handler: _SmesherService_SmesherID_Handler, }, + { + MethodName: "SmesherIDs", + Handler: _SmesherService_SmesherIDs_Handler, + }, { MethodName: "Coinbase", Handler: _SmesherService_Coinbase_Handler, diff --git a/release/go/spacemesh/v1/smesher_types.pb.go b/release/go/spacemesh/v1/smesher_types.pb.go index df26e88a..eda3b4b3 100644 --- a/release/go/spacemesh/v1/smesher_types.pb.go +++ b/release/go/spacemesh/v1/smesher_types.pb.go @@ -64,7 +64,7 @@ func (x PostSetupProvider_DeviceType) Number() protoreflect.EnumNumber { // Deprecated: Use PostSetupProvider_DeviceType.Descriptor instead. func (PostSetupProvider_DeviceType) EnumDescriptor() ([]byte, []int) { - return file_spacemesh_v1_smesher_types_proto_rawDescGZIP(), []int{19, 0} + return file_spacemesh_v1_smesher_types_proto_rawDescGZIP(), []int{20, 0} } type PostSetupStatus_State int32 @@ -125,7 +125,7 @@ func (x PostSetupStatus_State) Number() protoreflect.EnumNumber { // Deprecated: Use PostSetupStatus_State.Descriptor instead. func (PostSetupStatus_State) EnumDescriptor() ([]byte, []int) { - return file_spacemesh_v1_smesher_types_proto_rawDescGZIP(), []int{21, 0} + return file_spacemesh_v1_smesher_types_proto_rawDescGZIP(), []int{22, 0} } type IsSmeshingResponse struct { @@ -656,6 +656,53 @@ func (x *SmesherIDResponse) GetPublicKey() []byte { return nil } +type SmesherIDsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PublicKeys [][]byte `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"` +} + +func (x *SmesherIDsResponse) Reset() { + *x = SmesherIDsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SmesherIDsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SmesherIDsResponse) ProtoMessage() {} + +func (x *SmesherIDsResponse) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SmesherIDsResponse.ProtoReflect.Descriptor instead. +func (*SmesherIDsResponse) Descriptor() ([]byte, []int) { + return file_spacemesh_v1_smesher_types_proto_rawDescGZIP(), []int{11} +} + +func (x *SmesherIDsResponse) GetPublicKeys() [][]byte { + if x != nil { + return x.PublicKeys + } + return nil +} + type CoinbaseResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -667,7 +714,7 @@ type CoinbaseResponse struct { func (x *CoinbaseResponse) Reset() { *x = CoinbaseResponse{} if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[11] + mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -680,7 +727,7 @@ func (x *CoinbaseResponse) String() string { func (*CoinbaseResponse) ProtoMessage() {} func (x *CoinbaseResponse) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[11] + mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -693,7 +740,7 @@ func (x *CoinbaseResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CoinbaseResponse.ProtoReflect.Descriptor instead. func (*CoinbaseResponse) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_smesher_types_proto_rawDescGZIP(), []int{11} + return file_spacemesh_v1_smesher_types_proto_rawDescGZIP(), []int{12} } func (x *CoinbaseResponse) GetAccountId() *AccountId { @@ -712,7 +759,7 @@ type EstimatedRewardsRequest struct { func (x *EstimatedRewardsRequest) Reset() { *x = EstimatedRewardsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[12] + mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -725,7 +772,7 @@ func (x *EstimatedRewardsRequest) String() string { func (*EstimatedRewardsRequest) ProtoMessage() {} func (x *EstimatedRewardsRequest) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[12] + mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -738,7 +785,7 @@ func (x *EstimatedRewardsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use EstimatedRewardsRequest.ProtoReflect.Descriptor instead. func (*EstimatedRewardsRequest) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_smesher_types_proto_rawDescGZIP(), []int{12} + return file_spacemesh_v1_smesher_types_proto_rawDescGZIP(), []int{13} } // Estimated rewards for the next epoch. Note that this is a global value that will be the @@ -758,7 +805,7 @@ type EstimatedRewardsResponse struct { func (x *EstimatedRewardsResponse) Reset() { *x = EstimatedRewardsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[13] + mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -771,7 +818,7 @@ func (x *EstimatedRewardsResponse) String() string { func (*EstimatedRewardsResponse) ProtoMessage() {} func (x *EstimatedRewardsResponse) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[13] + mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -784,7 +831,7 @@ func (x *EstimatedRewardsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use EstimatedRewardsResponse.ProtoReflect.Descriptor instead. func (*EstimatedRewardsResponse) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_smesher_types_proto_rawDescGZIP(), []int{13} + return file_spacemesh_v1_smesher_types_proto_rawDescGZIP(), []int{14} } func (x *EstimatedRewardsResponse) GetAmount() *Amount { @@ -813,7 +860,7 @@ type PostSetupProvidersRequest struct { func (x *PostSetupProvidersRequest) Reset() { *x = PostSetupProvidersRequest{} if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[14] + mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -826,7 +873,7 @@ func (x *PostSetupProvidersRequest) String() string { func (*PostSetupProvidersRequest) ProtoMessage() {} func (x *PostSetupProvidersRequest) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[14] + mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -839,7 +886,7 @@ func (x *PostSetupProvidersRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use PostSetupProvidersRequest.ProtoReflect.Descriptor instead. func (*PostSetupProvidersRequest) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_smesher_types_proto_rawDescGZIP(), []int{14} + return file_spacemesh_v1_smesher_types_proto_rawDescGZIP(), []int{15} } func (x *PostSetupProvidersRequest) GetBenchmark() bool { @@ -860,7 +907,7 @@ type PostSetupProvidersResponse struct { func (x *PostSetupProvidersResponse) Reset() { *x = PostSetupProvidersResponse{} if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[15] + mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -873,7 +920,7 @@ func (x *PostSetupProvidersResponse) String() string { func (*PostSetupProvidersResponse) ProtoMessage() {} func (x *PostSetupProvidersResponse) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[15] + mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -886,7 +933,7 @@ func (x *PostSetupProvidersResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use PostSetupProvidersResponse.ProtoReflect.Descriptor instead. func (*PostSetupProvidersResponse) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_smesher_types_proto_rawDescGZIP(), []int{15} + return file_spacemesh_v1_smesher_types_proto_rawDescGZIP(), []int{16} } func (x *PostSetupProvidersResponse) GetProviders() []*PostSetupProvider { @@ -907,7 +954,7 @@ type PostSetupStatusResponse struct { func (x *PostSetupStatusResponse) Reset() { *x = PostSetupStatusResponse{} if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[16] + mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -920,7 +967,7 @@ func (x *PostSetupStatusResponse) String() string { func (*PostSetupStatusResponse) ProtoMessage() {} func (x *PostSetupStatusResponse) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[16] + mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -933,7 +980,7 @@ func (x *PostSetupStatusResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use PostSetupStatusResponse.ProtoReflect.Descriptor instead. func (*PostSetupStatusResponse) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_smesher_types_proto_rawDescGZIP(), []int{16} + return file_spacemesh_v1_smesher_types_proto_rawDescGZIP(), []int{17} } func (x *PostSetupStatusResponse) GetStatus() *PostSetupStatus { @@ -954,7 +1001,7 @@ type PostSetupStatusStreamResponse struct { func (x *PostSetupStatusStreamResponse) Reset() { *x = PostSetupStatusStreamResponse{} if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[17] + mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -967,7 +1014,7 @@ func (x *PostSetupStatusStreamResponse) String() string { func (*PostSetupStatusStreamResponse) ProtoMessage() {} func (x *PostSetupStatusStreamResponse) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[17] + mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -980,7 +1027,7 @@ func (x *PostSetupStatusStreamResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use PostSetupStatusStreamResponse.ProtoReflect.Descriptor instead. func (*PostSetupStatusStreamResponse) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_smesher_types_proto_rawDescGZIP(), []int{17} + return file_spacemesh_v1_smesher_types_proto_rawDescGZIP(), []int{18} } func (x *PostSetupStatusStreamResponse) GetStatus() *PostSetupStatus { @@ -1006,7 +1053,7 @@ type PostConfigResponse struct { func (x *PostConfigResponse) Reset() { *x = PostConfigResponse{} if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[18] + mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1019,7 +1066,7 @@ func (x *PostConfigResponse) String() string { func (*PostConfigResponse) ProtoMessage() {} func (x *PostConfigResponse) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[18] + mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1032,7 +1079,7 @@ func (x *PostConfigResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use PostConfigResponse.ProtoReflect.Descriptor instead. func (*PostConfigResponse) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_smesher_types_proto_rawDescGZIP(), []int{18} + return file_spacemesh_v1_smesher_types_proto_rawDescGZIP(), []int{19} } func (x *PostConfigResponse) GetBitsPerLabel() uint32 { @@ -1091,7 +1138,7 @@ type PostSetupProvider struct { func (x *PostSetupProvider) Reset() { *x = PostSetupProvider{} if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[19] + mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1104,7 +1151,7 @@ func (x *PostSetupProvider) String() string { func (*PostSetupProvider) ProtoMessage() {} func (x *PostSetupProvider) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[19] + mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1117,7 +1164,7 @@ func (x *PostSetupProvider) ProtoReflect() protoreflect.Message { // Deprecated: Use PostSetupProvider.ProtoReflect.Descriptor instead. func (*PostSetupProvider) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_smesher_types_proto_rawDescGZIP(), []int{19} + return file_spacemesh_v1_smesher_types_proto_rawDescGZIP(), []int{20} } func (x *PostSetupProvider) GetId() uint32 { @@ -1164,7 +1211,7 @@ type PostSetupOpts struct { func (x *PostSetupOpts) Reset() { *x = PostSetupOpts{} if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[20] + mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1177,7 +1224,7 @@ func (x *PostSetupOpts) String() string { func (*PostSetupOpts) ProtoMessage() {} func (x *PostSetupOpts) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[20] + mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1190,7 +1237,7 @@ func (x *PostSetupOpts) ProtoReflect() protoreflect.Message { // Deprecated: Use PostSetupOpts.ProtoReflect.Descriptor instead. func (*PostSetupOpts) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_smesher_types_proto_rawDescGZIP(), []int{20} + return file_spacemesh_v1_smesher_types_proto_rawDescGZIP(), []int{21} } func (x *PostSetupOpts) GetDataDir() string { @@ -1241,7 +1288,7 @@ type PostSetupStatus struct { func (x *PostSetupStatus) Reset() { *x = PostSetupStatus{} if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[21] + mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1254,7 +1301,7 @@ func (x *PostSetupStatus) String() string { func (*PostSetupStatus) ProtoMessage() {} func (x *PostSetupStatus) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[21] + mi := &file_spacemesh_v1_smesher_types_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1267,7 +1314,7 @@ func (x *PostSetupStatus) ProtoReflect() protoreflect.Message { // Deprecated: Use PostSetupStatus.ProtoReflect.Descriptor instead. func (*PostSetupStatus) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_smesher_types_proto_rawDescGZIP(), []int{21} + return file_spacemesh_v1_smesher_types_proto_rawDescGZIP(), []int{22} } func (x *PostSetupStatus) GetState() PostSetupStatus_State { @@ -1347,112 +1394,115 @@ var file_spacemesh_v1_smesher_types_proto_rawDesc = []byte{ 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x32, 0x0a, 0x11, 0x53, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x22, 0x4a, 0x0a, 0x10, 0x43, 0x6f, - 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, - 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, - 0x31, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x52, 0x09, 0x61, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x19, 0x0a, 0x17, 0x45, 0x73, 0x74, 0x69, 0x6d, 0x61, - 0x74, 0x65, 0x64, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x22, 0x65, 0x0a, 0x18, 0x45, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, - 0x77, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, - 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6d, 0x6f, - 0x75, 0x6e, 0x74, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6e, - 0x75, 0x6d, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, - 0x6e, 0x75, 0x6d, 0x55, 0x6e, 0x69, 0x74, 0x73, 0x22, 0x39, 0x0a, 0x19, 0x50, 0x6f, 0x73, 0x74, - 0x53, 0x65, 0x74, 0x75, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x62, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, - 0x72, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x62, 0x65, 0x6e, 0x63, 0x68, 0x6d, - 0x61, 0x72, 0x6b, 0x22, 0x5b, 0x0a, 0x1a, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x74, 0x75, 0x70, - 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x3d, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, - 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x74, 0x75, 0x70, 0x50, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, - 0x22, 0x50, 0x0a, 0x17, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x74, 0x75, 0x70, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x70, + 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x22, 0x35, 0x0a, 0x12, 0x53, 0x6d, + 0x65, 0x73, 0x68, 0x65, 0x72, 0x49, 0x44, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, + 0x73, 0x22, 0x4a, 0x0a, 0x10, 0x43, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x49, 0x64, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x19, 0x0a, + 0x17, 0x45, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x65, 0x0a, 0x18, 0x45, 0x73, 0x74, 0x69, + 0x6d, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, + 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x75, 0x6d, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x6e, 0x75, 0x6d, 0x55, 0x6e, 0x69, 0x74, 0x73, 0x22, + 0x39, 0x0a, 0x19, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x74, 0x75, 0x70, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, + 0x62, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x09, 0x62, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x22, 0x5b, 0x0a, 0x1a, 0x50, 0x6f, + 0x73, 0x74, 0x53, 0x65, 0x74, 0x75, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x53, - 0x65, 0x74, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x22, 0x56, 0x0a, 0x1d, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x74, 0x75, 0x70, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, - 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x74, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xca, 0x01, 0x0a, 0x12, 0x50, - 0x6f, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x62, 0x69, 0x74, 0x73, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x6c, 0x61, - 0x62, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x62, 0x69, 0x74, 0x73, 0x50, - 0x65, 0x72, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x26, 0x0a, 0x0f, 0x6c, 0x61, 0x62, 0x65, 0x6c, - 0x73, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x0d, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x50, 0x65, 0x72, 0x55, 0x6e, 0x69, 0x74, 0x12, - 0x22, 0x0a, 0x0d, 0x6d, 0x69, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x73, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x6d, 0x69, 0x6e, 0x4e, 0x75, 0x6d, 0x55, 0x6e, - 0x69, 0x74, 0x73, 0x12, 0x22, 0x0a, 0x0d, 0x6d, 0x61, 0x78, 0x5f, 0x6e, 0x75, 0x6d, 0x5f, 0x75, - 0x6e, 0x69, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x4e, - 0x75, 0x6d, 0x55, 0x6e, 0x69, 0x74, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x6b, 0x31, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x02, 0x6b, 0x31, 0x12, 0x0e, 0x0a, 0x02, 0x6b, 0x32, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x02, 0x6b, 0x32, 0x22, 0xe2, 0x01, 0x0a, 0x11, 0x50, 0x6f, 0x73, 0x74, - 0x53, 0x65, 0x74, 0x75, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, - 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x6f, - 0x64, 0x65, 0x6c, 0x12, 0x4b, 0x0a, 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x74, 0x75, - 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, - 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, - 0x63, 0x65, 0x22, 0x38, 0x0a, 0x0a, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x14, 0x0a, 0x10, 0x44, 0x45, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x43, 0x4c, 0x41, 0x53, 0x53, - 0x5f, 0x43, 0x50, 0x55, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x44, 0x45, 0x56, 0x49, 0x43, 0x45, - 0x5f, 0x43, 0x4c, 0x41, 0x53, 0x53, 0x5f, 0x47, 0x50, 0x55, 0x10, 0x01, 0x22, 0xbd, 0x01, 0x0a, - 0x0d, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x74, 0x75, 0x70, 0x4f, 0x70, 0x74, 0x73, 0x12, 0x19, - 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x64, 0x69, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x64, 0x61, 0x74, 0x61, 0x44, 0x69, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x75, 0x6d, - 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x6e, 0x75, - 0x6d, 0x55, 0x6e, 0x69, 0x74, 0x73, 0x12, 0x22, 0x0a, 0x0d, 0x6d, 0x61, 0x78, 0x5f, 0x66, 0x69, - 0x6c, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6d, - 0x61, 0x78, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x24, 0x0a, 0x0b, 0x70, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x48, - 0x00, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, - 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x68, 0x72, 0x6f, 0x74, 0x74, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x08, 0x74, 0x68, 0x72, 0x6f, 0x74, 0x74, 0x6c, 0x65, 0x42, 0x0e, 0x0a, 0x0c, - 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0xc5, 0x02, 0x0a, - 0x0f, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x74, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x12, 0x39, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x23, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, - 0x6f, 0x73, 0x74, 0x53, 0x65, 0x74, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x6e, - 0x75, 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x74, 0x65, - 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x6e, 0x75, 0x6d, 0x4c, 0x61, 0x62, 0x65, - 0x6c, 0x73, 0x57, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 0x12, 0x2f, 0x0a, 0x04, 0x6f, 0x70, 0x74, - 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, - 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x74, 0x75, 0x70, - 0x4f, 0x70, 0x74, 0x73, 0x52, 0x04, 0x6f, 0x70, 0x74, 0x73, 0x22, 0x97, 0x01, 0x0a, 0x05, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, - 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x53, - 0x54, 0x41, 0x54, 0x45, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x45, 0x44, - 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x50, - 0x41, 0x52, 0x45, 0x44, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, - 0x49, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x03, 0x12, 0x10, 0x0a, - 0x0c, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x50, 0x41, 0x55, 0x53, 0x45, 0x44, 0x10, 0x04, 0x12, - 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, - 0x45, 0x10, 0x05, 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x45, 0x52, 0x52, - 0x4f, 0x52, 0x10, 0x06, 0x42, 0xb6, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x42, 0x11, 0x53, 0x6d, 0x65, 0x73, 0x68, - 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x6d, 0x65, 0x73, 0x68, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, - 0x73, 0x65, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, - 0x76, 0x31, 0x3b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x76, 0x31, 0xa2, 0x02, - 0x03, 0x53, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, - 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, - 0x56, 0x31, 0xe2, 0x02, 0x18, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, - 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, - 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x74, 0x75, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x09, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x22, 0x50, 0x0a, 0x17, 0x50, 0x6f, 0x73, 0x74, 0x53, + 0x65, 0x74, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x35, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, + 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x74, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x56, 0x0a, 0x1d, 0x50, 0x6f, 0x73, + 0x74, 0x53, 0x65, 0x74, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x53, 0x74, 0x72, 0x65, + 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x65, + 0x74, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x22, 0xca, 0x01, 0x0a, 0x12, 0x50, 0x6f, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x62, 0x69, 0x74, 0x73, + 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x0c, 0x62, 0x69, 0x74, 0x73, 0x50, 0x65, 0x72, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x26, + 0x0a, 0x0f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x75, 0x6e, 0x69, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x50, + 0x65, 0x72, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x22, 0x0a, 0x0d, 0x6d, 0x69, 0x6e, 0x5f, 0x6e, 0x75, + 0x6d, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x6d, + 0x69, 0x6e, 0x4e, 0x75, 0x6d, 0x55, 0x6e, 0x69, 0x74, 0x73, 0x12, 0x22, 0x0a, 0x0d, 0x6d, 0x61, + 0x78, 0x5f, 0x6e, 0x75, 0x6d, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x4e, 0x75, 0x6d, 0x55, 0x6e, 0x69, 0x74, 0x73, 0x12, 0x0e, + 0x0a, 0x02, 0x6b, 0x31, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x6b, 0x31, 0x12, 0x0e, + 0x0a, 0x02, 0x6b, 0x32, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x6b, 0x32, 0x22, 0xe2, + 0x01, 0x0a, 0x11, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x74, 0x75, 0x70, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x4b, 0x0a, 0x0b, 0x64, 0x65, + 0x76, 0x69, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x2a, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, + 0x6f, 0x73, 0x74, 0x53, 0x65, 0x74, 0x75, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x64, 0x65, 0x76, + 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x66, 0x6f, + 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x70, 0x65, + 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x38, 0x0a, 0x0a, 0x44, 0x65, 0x76, + 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x44, 0x45, 0x56, 0x49, 0x43, + 0x45, 0x5f, 0x43, 0x4c, 0x41, 0x53, 0x53, 0x5f, 0x43, 0x50, 0x55, 0x10, 0x00, 0x12, 0x14, 0x0a, + 0x10, 0x44, 0x45, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x43, 0x4c, 0x41, 0x53, 0x53, 0x5f, 0x47, 0x50, + 0x55, 0x10, 0x01, 0x22, 0xbd, 0x01, 0x0a, 0x0d, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x74, 0x75, + 0x70, 0x4f, 0x70, 0x74, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x64, 0x69, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x61, 0x74, 0x61, 0x44, 0x69, 0x72, + 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x75, 0x6d, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x08, 0x6e, 0x75, 0x6d, 0x55, 0x6e, 0x69, 0x74, 0x73, 0x12, 0x22, 0x0a, + 0x0d, 0x6d, 0x61, 0x78, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, + 0x65, 0x12, 0x24, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x68, 0x72, 0x6f, 0x74, + 0x74, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x74, 0x68, 0x72, 0x6f, 0x74, + 0x74, 0x6c, 0x65, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x5f, 0x69, 0x64, 0x22, 0xc5, 0x02, 0x0a, 0x0f, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x74, 0x75, + 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x39, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, + 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x74, 0x75, 0x70, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x6e, 0x75, 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, + 0x5f, 0x77, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, + 0x6e, 0x75, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x57, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, + 0x12, 0x2f, 0x0a, 0x04, 0x6f, 0x70, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, + 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, + 0x73, 0x74, 0x53, 0x65, 0x74, 0x75, 0x70, 0x4f, 0x70, 0x74, 0x73, 0x52, 0x04, 0x6f, 0x70, 0x74, + 0x73, 0x22, 0x97, 0x01, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, + 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, + 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, + 0x53, 0x54, 0x41, 0x52, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, + 0x54, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x50, 0x41, 0x52, 0x45, 0x44, 0x10, 0x02, 0x12, 0x15, 0x0a, + 0x11, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x49, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x45, + 0x53, 0x53, 0x10, 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x50, 0x41, + 0x55, 0x53, 0x45, 0x44, 0x10, 0x04, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, + 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x05, 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x54, + 0x41, 0x54, 0x45, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x06, 0x42, 0xb6, 0x01, 0x0a, 0x10, + 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, + 0x42, 0x11, 0x53, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x6f, 0x73, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, + 0x65, 0x73, 0x68, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x53, 0x70, + 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x53, 0x70, 0x61, + 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x53, 0x70, 0x61, 0x63, + 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, + 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1468,7 +1518,7 @@ func file_spacemesh_v1_smesher_types_proto_rawDescGZIP() []byte { } var file_spacemesh_v1_smesher_types_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_spacemesh_v1_smesher_types_proto_msgTypes = make([]protoimpl.MessageInfo, 22) +var file_spacemesh_v1_smesher_types_proto_msgTypes = make([]protoimpl.MessageInfo, 23) var file_spacemesh_v1_smesher_types_proto_goTypes = []interface{}{ (PostSetupProvider_DeviceType)(0), // 0: spacemesh.v1.PostSetupProvider.DeviceType (PostSetupStatus_State)(0), // 1: spacemesh.v1.PostSetupStatus.State @@ -1483,40 +1533,41 @@ var file_spacemesh_v1_smesher_types_proto_goTypes = []interface{}{ (*SetMinGasRequest)(nil), // 10: spacemesh.v1.SetMinGasRequest (*SetMinGasResponse)(nil), // 11: spacemesh.v1.SetMinGasResponse (*SmesherIDResponse)(nil), // 12: spacemesh.v1.SmesherIDResponse - (*CoinbaseResponse)(nil), // 13: spacemesh.v1.CoinbaseResponse - (*EstimatedRewardsRequest)(nil), // 14: spacemesh.v1.EstimatedRewardsRequest - (*EstimatedRewardsResponse)(nil), // 15: spacemesh.v1.EstimatedRewardsResponse - (*PostSetupProvidersRequest)(nil), // 16: spacemesh.v1.PostSetupProvidersRequest - (*PostSetupProvidersResponse)(nil), // 17: spacemesh.v1.PostSetupProvidersResponse - (*PostSetupStatusResponse)(nil), // 18: spacemesh.v1.PostSetupStatusResponse - (*PostSetupStatusStreamResponse)(nil), // 19: spacemesh.v1.PostSetupStatusStreamResponse - (*PostConfigResponse)(nil), // 20: spacemesh.v1.PostConfigResponse - (*PostSetupProvider)(nil), // 21: spacemesh.v1.PostSetupProvider - (*PostSetupOpts)(nil), // 22: spacemesh.v1.PostSetupOpts - (*PostSetupStatus)(nil), // 23: spacemesh.v1.PostSetupStatus - (*AccountId)(nil), // 24: spacemesh.v1.AccountId - (*status.Status)(nil), // 25: google.rpc.Status - (*SimpleInt)(nil), // 26: spacemesh.v1.SimpleInt - (*Amount)(nil), // 27: spacemesh.v1.Amount + (*SmesherIDsResponse)(nil), // 13: spacemesh.v1.SmesherIDsResponse + (*CoinbaseResponse)(nil), // 14: spacemesh.v1.CoinbaseResponse + (*EstimatedRewardsRequest)(nil), // 15: spacemesh.v1.EstimatedRewardsRequest + (*EstimatedRewardsResponse)(nil), // 16: spacemesh.v1.EstimatedRewardsResponse + (*PostSetupProvidersRequest)(nil), // 17: spacemesh.v1.PostSetupProvidersRequest + (*PostSetupProvidersResponse)(nil), // 18: spacemesh.v1.PostSetupProvidersResponse + (*PostSetupStatusResponse)(nil), // 19: spacemesh.v1.PostSetupStatusResponse + (*PostSetupStatusStreamResponse)(nil), // 20: spacemesh.v1.PostSetupStatusStreamResponse + (*PostConfigResponse)(nil), // 21: spacemesh.v1.PostConfigResponse + (*PostSetupProvider)(nil), // 22: spacemesh.v1.PostSetupProvider + (*PostSetupOpts)(nil), // 23: spacemesh.v1.PostSetupOpts + (*PostSetupStatus)(nil), // 24: spacemesh.v1.PostSetupStatus + (*AccountId)(nil), // 25: spacemesh.v1.AccountId + (*status.Status)(nil), // 26: google.rpc.Status + (*SimpleInt)(nil), // 27: spacemesh.v1.SimpleInt + (*Amount)(nil), // 28: spacemesh.v1.Amount } var file_spacemesh_v1_smesher_types_proto_depIdxs = []int32{ - 24, // 0: spacemesh.v1.StartSmeshingRequest.coinbase:type_name -> spacemesh.v1.AccountId - 22, // 1: spacemesh.v1.StartSmeshingRequest.opts:type_name -> spacemesh.v1.PostSetupOpts - 25, // 2: spacemesh.v1.StartSmeshingResponse.status:type_name -> google.rpc.Status - 25, // 3: spacemesh.v1.StopSmeshingResponse.status:type_name -> google.rpc.Status - 24, // 4: spacemesh.v1.SetCoinbaseRequest.id:type_name -> spacemesh.v1.AccountId - 25, // 5: spacemesh.v1.SetCoinbaseResponse.status:type_name -> google.rpc.Status - 26, // 6: spacemesh.v1.MinGasResponse.mingas:type_name -> spacemesh.v1.SimpleInt - 26, // 7: spacemesh.v1.SetMinGasRequest.mingas:type_name -> spacemesh.v1.SimpleInt - 25, // 8: spacemesh.v1.SetMinGasResponse.status:type_name -> google.rpc.Status - 24, // 9: spacemesh.v1.CoinbaseResponse.account_id:type_name -> spacemesh.v1.AccountId - 27, // 10: spacemesh.v1.EstimatedRewardsResponse.amount:type_name -> spacemesh.v1.Amount - 21, // 11: spacemesh.v1.PostSetupProvidersResponse.providers:type_name -> spacemesh.v1.PostSetupProvider - 23, // 12: spacemesh.v1.PostSetupStatusResponse.status:type_name -> spacemesh.v1.PostSetupStatus - 23, // 13: spacemesh.v1.PostSetupStatusStreamResponse.status:type_name -> spacemesh.v1.PostSetupStatus + 25, // 0: spacemesh.v1.StartSmeshingRequest.coinbase:type_name -> spacemesh.v1.AccountId + 23, // 1: spacemesh.v1.StartSmeshingRequest.opts:type_name -> spacemesh.v1.PostSetupOpts + 26, // 2: spacemesh.v1.StartSmeshingResponse.status:type_name -> google.rpc.Status + 26, // 3: spacemesh.v1.StopSmeshingResponse.status:type_name -> google.rpc.Status + 25, // 4: spacemesh.v1.SetCoinbaseRequest.id:type_name -> spacemesh.v1.AccountId + 26, // 5: spacemesh.v1.SetCoinbaseResponse.status:type_name -> google.rpc.Status + 27, // 6: spacemesh.v1.MinGasResponse.mingas:type_name -> spacemesh.v1.SimpleInt + 27, // 7: spacemesh.v1.SetMinGasRequest.mingas:type_name -> spacemesh.v1.SimpleInt + 26, // 8: spacemesh.v1.SetMinGasResponse.status:type_name -> google.rpc.Status + 25, // 9: spacemesh.v1.CoinbaseResponse.account_id:type_name -> spacemesh.v1.AccountId + 28, // 10: spacemesh.v1.EstimatedRewardsResponse.amount:type_name -> spacemesh.v1.Amount + 22, // 11: spacemesh.v1.PostSetupProvidersResponse.providers:type_name -> spacemesh.v1.PostSetupProvider + 24, // 12: spacemesh.v1.PostSetupStatusResponse.status:type_name -> spacemesh.v1.PostSetupStatus + 24, // 13: spacemesh.v1.PostSetupStatusStreamResponse.status:type_name -> spacemesh.v1.PostSetupStatus 0, // 14: spacemesh.v1.PostSetupProvider.device_type:type_name -> spacemesh.v1.PostSetupProvider.DeviceType 1, // 15: spacemesh.v1.PostSetupStatus.state:type_name -> spacemesh.v1.PostSetupStatus.State - 22, // 16: spacemesh.v1.PostSetupStatus.opts:type_name -> spacemesh.v1.PostSetupOpts + 23, // 16: spacemesh.v1.PostSetupStatus.opts:type_name -> spacemesh.v1.PostSetupOpts 17, // [17:17] is the sub-list for method output_type 17, // [17:17] is the sub-list for method input_type 17, // [17:17] is the sub-list for extension type_name @@ -1664,7 +1715,7 @@ func file_spacemesh_v1_smesher_types_proto_init() { } } file_spacemesh_v1_smesher_types_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CoinbaseResponse); i { + switch v := v.(*SmesherIDsResponse); i { case 0: return &v.state case 1: @@ -1676,7 +1727,7 @@ func file_spacemesh_v1_smesher_types_proto_init() { } } file_spacemesh_v1_smesher_types_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EstimatedRewardsRequest); i { + switch v := v.(*CoinbaseResponse); i { case 0: return &v.state case 1: @@ -1688,7 +1739,7 @@ func file_spacemesh_v1_smesher_types_proto_init() { } } file_spacemesh_v1_smesher_types_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EstimatedRewardsResponse); i { + switch v := v.(*EstimatedRewardsRequest); i { case 0: return &v.state case 1: @@ -1700,7 +1751,7 @@ func file_spacemesh_v1_smesher_types_proto_init() { } } file_spacemesh_v1_smesher_types_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PostSetupProvidersRequest); i { + switch v := v.(*EstimatedRewardsResponse); i { case 0: return &v.state case 1: @@ -1712,7 +1763,7 @@ func file_spacemesh_v1_smesher_types_proto_init() { } } file_spacemesh_v1_smesher_types_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PostSetupProvidersResponse); i { + switch v := v.(*PostSetupProvidersRequest); i { case 0: return &v.state case 1: @@ -1724,7 +1775,7 @@ func file_spacemesh_v1_smesher_types_proto_init() { } } file_spacemesh_v1_smesher_types_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PostSetupStatusResponse); i { + switch v := v.(*PostSetupProvidersResponse); i { case 0: return &v.state case 1: @@ -1736,7 +1787,7 @@ func file_spacemesh_v1_smesher_types_proto_init() { } } file_spacemesh_v1_smesher_types_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PostSetupStatusStreamResponse); i { + switch v := v.(*PostSetupStatusResponse); i { case 0: return &v.state case 1: @@ -1748,7 +1799,7 @@ func file_spacemesh_v1_smesher_types_proto_init() { } } file_spacemesh_v1_smesher_types_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PostConfigResponse); i { + switch v := v.(*PostSetupStatusStreamResponse); i { case 0: return &v.state case 1: @@ -1760,7 +1811,7 @@ func file_spacemesh_v1_smesher_types_proto_init() { } } file_spacemesh_v1_smesher_types_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PostSetupProvider); i { + switch v := v.(*PostConfigResponse); i { case 0: return &v.state case 1: @@ -1772,7 +1823,7 @@ func file_spacemesh_v1_smesher_types_proto_init() { } } file_spacemesh_v1_smesher_types_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PostSetupOpts); i { + switch v := v.(*PostSetupProvider); i { case 0: return &v.state case 1: @@ -1784,6 +1835,18 @@ func file_spacemesh_v1_smesher_types_proto_init() { } } file_spacemesh_v1_smesher_types_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PostSetupOpts); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v1_smesher_types_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PostSetupStatus); i { case 0: return &v.state @@ -1796,14 +1859,14 @@ func file_spacemesh_v1_smesher_types_proto_init() { } } } - file_spacemesh_v1_smesher_types_proto_msgTypes[20].OneofWrappers = []interface{}{} + file_spacemesh_v1_smesher_types_proto_msgTypes[21].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_spacemesh_v1_smesher_types_proto_rawDesc, NumEnums: 2, - NumMessages: 22, + NumMessages: 23, NumExtensions: 0, NumServices: 0, }, diff --git a/spacemesh/v1/admin_types.proto b/spacemesh/v1/admin_types.proto index 79c4c0e0..f55486a4 100644 --- a/spacemesh/v1/admin_types.proto +++ b/spacemesh/v1/admin_types.proto @@ -69,10 +69,12 @@ message EventPostServiceStopped {} message EventPostStart { bytes challenge = 1; + bytes smesher = 2; } message EventPostComplete { bytes challenge = 1; + bytes smesher = 2; } message EventPoetWaitRound { diff --git a/spacemesh/v1/smesher.proto b/spacemesh/v1/smesher.proto index 27c813a4..4e15c8c4 100644 --- a/spacemesh/v1/smesher.proto +++ b/spacemesh/v1/smesher.proto @@ -39,6 +39,14 @@ service SmesherService { option (google.api.http) = { post: "/v1/smesher/smesherid" }; + option deprecated = true; // will return empty response in v1.4.x + } + + // Get the Smesher IDs managed by the node + rpc SmesherIDs (google.protobuf.Empty) returns (SmesherIDsResponse) { + option (google.api.http) = { + post: "/v1/smesher/smesherids" + }; } // Get the current coinbase diff --git a/spacemesh/v1/smesher_types.proto b/spacemesh/v1/smesher_types.proto index 0197eb27..729b2bea 100644 --- a/spacemesh/v1/smesher_types.proto +++ b/spacemesh/v1/smesher_types.proto @@ -54,6 +54,10 @@ message SmesherIDResponse { bytes public_key = 1; } +message SmesherIDsResponse { + repeated bytes public_keys = 1; +} + message CoinbaseResponse { AccountId account_id = 1; } From bab03331672638966e06c7cfcb2c56686a3f8304 Mon Sep 17 00:00:00 2001 From: Kacper Sawicki Date: Mon, 12 Feb 2024 11:28:09 +0100 Subject: [PATCH 19/20] Move atx to v2alpha1 and remove headers --- release/go/spacemesh/v2/activation.pb.go | 1309 ----------------- .../go/spacemesh/v2alpha1/activation.pb.go | 1025 +++++++++++++ .../{v2 => v2alpha1}/activation.pb.gw.go | 159 +- .../{v2 => v2alpha1}/activation_grpc.pb.go | 117 +- spacemesh/{v2 => v2alpha1}/activation.proto | 25 +- 5 files changed, 1042 insertions(+), 1593 deletions(-) delete mode 100644 release/go/spacemesh/v2/activation.pb.go create mode 100644 release/go/spacemesh/v2alpha1/activation.pb.go rename release/go/spacemesh/{v2 => v2alpha1}/activation.pb.gw.go (60%) rename release/go/spacemesh/{v2 => v2alpha1}/activation_grpc.pb.go (63%) rename spacemesh/{v2 => v2alpha1}/activation.proto (77%) diff --git a/release/go/spacemesh/v2/activation.pb.go b/release/go/spacemesh/v2/activation.pb.go deleted file mode 100644 index d09149bc..00000000 --- a/release/go/spacemesh/v2/activation.pb.go +++ /dev/null @@ -1,1309 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.31.0 -// protoc (unknown) -// source: spacemesh/v2/activation.proto - -package spacemeshv2 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type Activation struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Versioned: - // - // *Activation_V1 - Versioned isActivation_Versioned `protobuf_oneof:"versioned"` -} - -func (x *Activation) Reset() { - *x = Activation{} - if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v2_activation_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Activation) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Activation) ProtoMessage() {} - -func (x *Activation) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v2_activation_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Activation.ProtoReflect.Descriptor instead. -func (*Activation) Descriptor() ([]byte, []int) { - return file_spacemesh_v2_activation_proto_rawDescGZIP(), []int{0} -} - -func (m *Activation) GetVersioned() isActivation_Versioned { - if m != nil { - return m.Versioned - } - return nil -} - -func (x *Activation) GetV1() *ActivationV1 { - if x, ok := x.GetVersioned().(*Activation_V1); ok { - return x.V1 - } - return nil -} - -type isActivation_Versioned interface { - isActivation_Versioned() -} - -type Activation_V1 struct { - V1 *ActivationV1 `protobuf:"bytes,1,opt,name=v1,proto3,oneof"` -} - -func (*Activation_V1) isActivation_Versioned() {} - -type ActivationV1 struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - NodeId []byte `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` - Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` - PublishEpoch uint32 `protobuf:"varint,4,opt,name=publish_epoch,json=publishEpoch,proto3" json:"publish_epoch,omitempty"` - Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` - PrevAtx []byte `protobuf:"bytes,6,opt,name=prev_atx,json=prevAtx,proto3" json:"prev_atx,omitempty"` - PositioningAtx []byte `protobuf:"bytes,7,opt,name=positioning_atx,json=positioningAtx,proto3" json:"positioning_atx,omitempty"` - CommittmentAtx []byte `protobuf:"bytes,8,opt,name=committment_atx,json=committmentAtx,proto3" json:"committment_atx,omitempty"` - InitialPost *Post `protobuf:"bytes,9,opt,name=initial_post,json=initialPost,proto3" json:"initial_post,omitempty"` - Coinbase string `protobuf:"bytes,10,opt,name=coinbase,proto3" json:"coinbase,omitempty"` - Units uint32 `protobuf:"varint,11,opt,name=units,proto3" json:"units,omitempty"` - BaseHeight uint32 `protobuf:"varint,12,opt,name=base_height,json=baseHeight,proto3" json:"base_height,omitempty"` - Ticks uint32 `protobuf:"varint,13,opt,name=ticks,proto3" json:"ticks,omitempty"` - PoetProof *PoetProof `protobuf:"bytes,14,opt,name=poet_proof,json=poetProof,proto3" json:"poet_proof,omitempty"` - Post *Post `protobuf:"bytes,15,opt,name=post,proto3" json:"post,omitempty"` - PostMeta *PostMeta `protobuf:"bytes,16,opt,name=post_meta,json=postMeta,proto3" json:"post_meta,omitempty"` - VrfPostIndex *VRFPostIndex `protobuf:"bytes,17,opt,name=vrf_post_index,json=vrfPostIndex,proto3" json:"vrf_post_index,omitempty"` -} - -func (x *ActivationV1) Reset() { - *x = ActivationV1{} - if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v2_activation_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ActivationV1) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ActivationV1) ProtoMessage() {} - -func (x *ActivationV1) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v2_activation_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ActivationV1.ProtoReflect.Descriptor instead. -func (*ActivationV1) Descriptor() ([]byte, []int) { - return file_spacemesh_v2_activation_proto_rawDescGZIP(), []int{1} -} - -func (x *ActivationV1) GetId() []byte { - if x != nil { - return x.Id - } - return nil -} - -func (x *ActivationV1) GetNodeId() []byte { - if x != nil { - return x.NodeId - } - return nil -} - -func (x *ActivationV1) GetSignature() []byte { - if x != nil { - return x.Signature - } - return nil -} - -func (x *ActivationV1) GetPublishEpoch() uint32 { - if x != nil { - return x.PublishEpoch - } - return 0 -} - -func (x *ActivationV1) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *ActivationV1) GetPrevAtx() []byte { - if x != nil { - return x.PrevAtx - } - return nil -} - -func (x *ActivationV1) GetPositioningAtx() []byte { - if x != nil { - return x.PositioningAtx - } - return nil -} - -func (x *ActivationV1) GetCommittmentAtx() []byte { - if x != nil { - return x.CommittmentAtx - } - return nil -} - -func (x *ActivationV1) GetInitialPost() *Post { - if x != nil { - return x.InitialPost - } - return nil -} - -func (x *ActivationV1) GetCoinbase() string { - if x != nil { - return x.Coinbase - } - return "" -} - -func (x *ActivationV1) GetUnits() uint32 { - if x != nil { - return x.Units - } - return 0 -} - -func (x *ActivationV1) GetBaseHeight() uint32 { - if x != nil { - return x.BaseHeight - } - return 0 -} - -func (x *ActivationV1) GetTicks() uint32 { - if x != nil { - return x.Ticks - } - return 0 -} - -func (x *ActivationV1) GetPoetProof() *PoetProof { - if x != nil { - return x.PoetProof - } - return nil -} - -func (x *ActivationV1) GetPost() *Post { - if x != nil { - return x.Post - } - return nil -} - -func (x *ActivationV1) GetPostMeta() *PostMeta { - if x != nil { - return x.PostMeta - } - return nil -} - -func (x *ActivationV1) GetVrfPostIndex() *VRFPostIndex { - if x != nil { - return x.VrfPostIndex - } - return nil -} - -type ActivationHeader struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Versioned: - // - // *ActivationHeader_V1 - Versioned isActivationHeader_Versioned `protobuf_oneof:"versioned"` -} - -func (x *ActivationHeader) Reset() { - *x = ActivationHeader{} - if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v2_activation_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ActivationHeader) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ActivationHeader) ProtoMessage() {} - -func (x *ActivationHeader) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v2_activation_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ActivationHeader.ProtoReflect.Descriptor instead. -func (*ActivationHeader) Descriptor() ([]byte, []int) { - return file_spacemesh_v2_activation_proto_rawDescGZIP(), []int{2} -} - -func (m *ActivationHeader) GetVersioned() isActivationHeader_Versioned { - if m != nil { - return m.Versioned - } - return nil -} - -func (x *ActivationHeader) GetV1() *ActivationHeaderV1 { - if x, ok := x.GetVersioned().(*ActivationHeader_V1); ok { - return x.V1 - } - return nil -} - -type isActivationHeader_Versioned interface { - isActivationHeader_Versioned() -} - -type ActivationHeader_V1 struct { - V1 *ActivationHeaderV1 `protobuf:"bytes,1,opt,name=v1,proto3,oneof"` -} - -func (*ActivationHeader_V1) isActivationHeader_Versioned() {} - -type ActivationHeaderV1 struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - NodeId []byte `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` - PublishEpoch uint32 `protobuf:"varint,3,opt,name=publish_epoch,json=publishEpoch,proto3" json:"publish_epoch,omitempty"` - Coinbase string `protobuf:"bytes,4,opt,name=coinbase,proto3" json:"coinbase,omitempty"` - Units uint32 `protobuf:"varint,5,opt,name=units,proto3" json:"units,omitempty"` - BaseHeight uint32 `protobuf:"varint,6,opt,name=base_height,json=baseHeight,proto3" json:"base_height,omitempty"` - Ticks uint32 `protobuf:"varint,7,opt,name=ticks,proto3" json:"ticks,omitempty"` -} - -func (x *ActivationHeaderV1) Reset() { - *x = ActivationHeaderV1{} - if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v2_activation_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ActivationHeaderV1) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ActivationHeaderV1) ProtoMessage() {} - -func (x *ActivationHeaderV1) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v2_activation_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ActivationHeaderV1.ProtoReflect.Descriptor instead. -func (*ActivationHeaderV1) Descriptor() ([]byte, []int) { - return file_spacemesh_v2_activation_proto_rawDescGZIP(), []int{3} -} - -func (x *ActivationHeaderV1) GetId() []byte { - if x != nil { - return x.Id - } - return nil -} - -func (x *ActivationHeaderV1) GetNodeId() []byte { - if x != nil { - return x.NodeId - } - return nil -} - -func (x *ActivationHeaderV1) GetPublishEpoch() uint32 { - if x != nil { - return x.PublishEpoch - } - return 0 -} - -func (x *ActivationHeaderV1) GetCoinbase() string { - if x != nil { - return x.Coinbase - } - return "" -} - -func (x *ActivationHeaderV1) GetUnits() uint32 { - if x != nil { - return x.Units - } - return 0 -} - -func (x *ActivationHeaderV1) GetBaseHeight() uint32 { - if x != nil { - return x.BaseHeight - } - return 0 -} - -func (x *ActivationHeaderV1) GetTicks() uint32 { - if x != nil { - return x.Ticks - } - return 0 -} - -type VRFPostIndex struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` -} - -func (x *VRFPostIndex) Reset() { - *x = VRFPostIndex{} - if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v2_activation_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *VRFPostIndex) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VRFPostIndex) ProtoMessage() {} - -func (x *VRFPostIndex) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v2_activation_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use VRFPostIndex.ProtoReflect.Descriptor instead. -func (*VRFPostIndex) Descriptor() ([]byte, []int) { - return file_spacemesh_v2_activation_proto_rawDescGZIP(), []int{4} -} - -func (x *VRFPostIndex) GetNonce() uint64 { - if x != nil { - return x.Nonce - } - return 0 -} - -type PoetProof struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProofNodes [][]byte `protobuf:"bytes,1,rep,name=proof_nodes,json=proofNodes,proto3" json:"proof_nodes,omitempty"` - Leaf uint64 `protobuf:"varint,2,opt,name=leaf,proto3" json:"leaf,omitempty"` -} - -func (x *PoetProof) Reset() { - *x = PoetProof{} - if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v2_activation_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PoetProof) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PoetProof) ProtoMessage() {} - -func (x *PoetProof) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v2_activation_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PoetProof.ProtoReflect.Descriptor instead. -func (*PoetProof) Descriptor() ([]byte, []int) { - return file_spacemesh_v2_activation_proto_rawDescGZIP(), []int{5} -} - -func (x *PoetProof) GetProofNodes() [][]byte { - if x != nil { - return x.ProofNodes - } - return nil -} - -func (x *PoetProof) GetLeaf() uint64 { - if x != nil { - return x.Leaf - } - return 0 -} - -type PostMeta struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Challenge []byte `protobuf:"bytes,1,opt,name=challenge,proto3" json:"challenge,omitempty"` - Labels uint64 `protobuf:"varint,2,opt,name=labels,proto3" json:"labels,omitempty"` -} - -func (x *PostMeta) Reset() { - *x = PostMeta{} - if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v2_activation_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PostMeta) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PostMeta) ProtoMessage() {} - -func (x *PostMeta) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v2_activation_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PostMeta.ProtoReflect.Descriptor instead. -func (*PostMeta) Descriptor() ([]byte, []int) { - return file_spacemesh_v2_activation_proto_rawDescGZIP(), []int{6} -} - -func (x *PostMeta) GetChallenge() []byte { - if x != nil { - return x.Challenge - } - return nil -} - -func (x *PostMeta) GetLabels() uint64 { - if x != nil { - return x.Labels - } - return 0 -} - -type Post struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Nonce uint32 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` - Indices []byte `protobuf:"bytes,2,opt,name=indices,proto3" json:"indices,omitempty"` - Pow uint64 `protobuf:"varint,3,opt,name=pow,proto3" json:"pow,omitempty"` -} - -func (x *Post) Reset() { - *x = Post{} - if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v2_activation_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Post) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Post) ProtoMessage() {} - -func (x *Post) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v2_activation_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Post.ProtoReflect.Descriptor instead. -func (*Post) Descriptor() ([]byte, []int) { - return file_spacemesh_v2_activation_proto_rawDescGZIP(), []int{7} -} - -func (x *Post) GetNonce() uint32 { - if x != nil { - return x.Nonce - } - return 0 -} - -func (x *Post) GetIndices() []byte { - if x != nil { - return x.Indices - } - return nil -} - -func (x *Post) GetPow() uint64 { - if x != nil { - return x.Pow - } - return 0 -} - -type ActivationStreamRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StartEpoch uint32 `protobuf:"varint,1,opt,name=start_epoch,json=startEpoch,proto3" json:"start_epoch,omitempty"` - EndEpoch uint32 `protobuf:"varint,2,opt,name=end_epoch,json=endEpoch,proto3" json:"end_epoch,omitempty"` - Id []byte `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` - NodeId []byte `protobuf:"bytes,4,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` - // CoinbaseFilter is not supported by database index and will result in sequential scan. - // Apply EpochFilter together with CoinbaseFilter for better performance. - Coinbase string `protobuf:"bytes,5,opt,name=coinbase,proto3" json:"coinbase,omitempty"` - Watch bool `protobuf:"varint,6,opt,name=watch,proto3" json:"watch,omitempty"` -} - -func (x *ActivationStreamRequest) Reset() { - *x = ActivationStreamRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v2_activation_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ActivationStreamRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ActivationStreamRequest) ProtoMessage() {} - -func (x *ActivationStreamRequest) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v2_activation_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ActivationStreamRequest.ProtoReflect.Descriptor instead. -func (*ActivationStreamRequest) Descriptor() ([]byte, []int) { - return file_spacemesh_v2_activation_proto_rawDescGZIP(), []int{8} -} - -func (x *ActivationStreamRequest) GetStartEpoch() uint32 { - if x != nil { - return x.StartEpoch - } - return 0 -} - -func (x *ActivationStreamRequest) GetEndEpoch() uint32 { - if x != nil { - return x.EndEpoch - } - return 0 -} - -func (x *ActivationStreamRequest) GetId() []byte { - if x != nil { - return x.Id - } - return nil -} - -func (x *ActivationStreamRequest) GetNodeId() []byte { - if x != nil { - return x.NodeId - } - return nil -} - -func (x *ActivationStreamRequest) GetCoinbase() string { - if x != nil { - return x.Coinbase - } - return "" -} - -func (x *ActivationStreamRequest) GetWatch() bool { - if x != nil { - return x.Watch - } - return false -} - -type ActivationRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StartEpoch uint32 `protobuf:"varint,1,opt,name=start_epoch,json=startEpoch,proto3" json:"start_epoch,omitempty"` - EndEpoch uint32 `protobuf:"varint,2,opt,name=end_epoch,json=endEpoch,proto3" json:"end_epoch,omitempty"` - Id []byte `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` - NodeId []byte `protobuf:"bytes,4,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` - // CoinbaseFilter is not supported by database index and will result in sequential scan. - // Apply EpochFilter together with CoinbaseFilter for better performance. - Coinbase string `protobuf:"bytes,5,opt,name=coinbase,proto3" json:"coinbase,omitempty"` - Offset uint64 `protobuf:"varint,6,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,7,opt,name=limit,proto3" json:"limit,omitempty"` -} - -func (x *ActivationRequest) Reset() { - *x = ActivationRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v2_activation_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ActivationRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ActivationRequest) ProtoMessage() {} - -func (x *ActivationRequest) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v2_activation_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ActivationRequest.ProtoReflect.Descriptor instead. -func (*ActivationRequest) Descriptor() ([]byte, []int) { - return file_spacemesh_v2_activation_proto_rawDescGZIP(), []int{9} -} - -func (x *ActivationRequest) GetStartEpoch() uint32 { - if x != nil { - return x.StartEpoch - } - return 0 -} - -func (x *ActivationRequest) GetEndEpoch() uint32 { - if x != nil { - return x.EndEpoch - } - return 0 -} - -func (x *ActivationRequest) GetId() []byte { - if x != nil { - return x.Id - } - return nil -} - -func (x *ActivationRequest) GetNodeId() []byte { - if x != nil { - return x.NodeId - } - return nil -} - -func (x *ActivationRequest) GetCoinbase() string { - if x != nil { - return x.Coinbase - } - return "" -} - -func (x *ActivationRequest) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *ActivationRequest) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -type ActivationList struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Activations []*Activation `protobuf:"bytes,1,rep,name=activations,proto3" json:"activations,omitempty"` -} - -func (x *ActivationList) Reset() { - *x = ActivationList{} - if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v2_activation_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ActivationList) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ActivationList) ProtoMessage() {} - -func (x *ActivationList) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v2_activation_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ActivationList.ProtoReflect.Descriptor instead. -func (*ActivationList) Descriptor() ([]byte, []int) { - return file_spacemesh_v2_activation_proto_rawDescGZIP(), []int{10} -} - -func (x *ActivationList) GetActivations() []*Activation { - if x != nil { - return x.Activations - } - return nil -} - -type ActivationHeaderList struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Headers []*ActivationHeader `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` -} - -func (x *ActivationHeaderList) Reset() { - *x = ActivationHeaderList{} - if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v2_activation_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ActivationHeaderList) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ActivationHeaderList) ProtoMessage() {} - -func (x *ActivationHeaderList) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v2_activation_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ActivationHeaderList.ProtoReflect.Descriptor instead. -func (*ActivationHeaderList) Descriptor() ([]byte, []int) { - return file_spacemesh_v2_activation_proto_rawDescGZIP(), []int{11} -} - -func (x *ActivationHeaderList) GetHeaders() []*ActivationHeader { - if x != nil { - return x.Headers - } - return nil -} - -var File_spacemesh_v2_activation_proto protoreflect.FileDescriptor - -var file_spacemesh_v2_activation_proto_rawDesc = []byte{ - 0x0a, 0x1d, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x61, - 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x0c, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x22, 0x47, 0x0a, - 0x0a, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2c, 0x0a, 0x02, 0x76, - 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, - 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x56, 0x31, 0x48, 0x00, 0x52, 0x02, 0x76, 0x31, 0x42, 0x0b, 0x0a, 0x09, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x64, 0x22, 0xfa, 0x04, 0x0a, 0x0c, 0x41, 0x63, 0x74, 0x69, 0x76, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x31, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, - 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x23, - 0x0a, 0x0d, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x45, 0x70, - 0x6f, 0x63, 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, - 0x19, 0x0a, 0x08, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x61, 0x74, 0x78, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x07, 0x70, 0x72, 0x65, 0x76, 0x41, 0x74, 0x78, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x6f, - 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x74, 0x78, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, - 0x41, 0x74, 0x78, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x6d, 0x65, - 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x78, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x63, 0x6f, - 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x78, 0x12, 0x35, 0x0a, 0x0c, - 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x18, 0x09, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, - 0x32, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x0b, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x50, - 0x6f, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x18, - 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x12, - 0x14, 0x0a, 0x05, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, - 0x75, 0x6e, 0x69, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x68, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x62, 0x61, 0x73, 0x65, - 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x63, 0x6b, 0x73, 0x18, - 0x0d, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x74, 0x69, 0x63, 0x6b, 0x73, 0x12, 0x36, 0x0a, 0x0a, - 0x70, 0x6f, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x17, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, - 0x50, 0x6f, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x09, 0x70, 0x6f, 0x65, 0x74, 0x50, - 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x26, 0x0a, 0x04, 0x70, 0x6f, 0x73, 0x74, 0x18, 0x0f, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, - 0x32, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x04, 0x70, 0x6f, 0x73, 0x74, 0x12, 0x33, 0x0a, 0x09, - 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x16, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x50, - 0x6f, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x74, 0x4d, 0x65, 0x74, - 0x61, 0x12, 0x40, 0x0a, 0x0e, 0x76, 0x72, 0x66, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x6e, - 0x64, 0x65, 0x78, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x52, 0x46, 0x50, 0x6f, 0x73, 0x74, - 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x0c, 0x76, 0x72, 0x66, 0x50, 0x6f, 0x73, 0x74, 0x49, 0x6e, - 0x64, 0x65, 0x78, 0x22, 0x53, 0x0a, 0x10, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x32, 0x0a, 0x02, 0x76, 0x31, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, - 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, - 0x64, 0x65, 0x72, 0x56, 0x31, 0x48, 0x00, 0x52, 0x02, 0x76, 0x31, 0x42, 0x0b, 0x0a, 0x09, 0x76, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x64, 0x22, 0xcb, 0x01, 0x0a, 0x12, 0x41, 0x63, 0x74, - 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x56, 0x31, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x75, 0x62, 0x6c, - 0x69, 0x73, 0x68, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x0c, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x1a, 0x0a, - 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x75, 0x6e, 0x69, - 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x12, - 0x1f, 0x0a, 0x0b, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x62, 0x61, 0x73, 0x65, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, - 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x63, 0x6b, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x05, 0x74, 0x69, 0x63, 0x6b, 0x73, 0x22, 0x24, 0x0a, 0x0c, 0x56, 0x52, 0x46, 0x50, 0x6f, 0x73, - 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x22, 0x40, 0x0a, 0x09, - 0x50, 0x6f, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, - 0x6f, 0x66, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0a, - 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x65, - 0x61, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x6c, 0x65, 0x61, 0x66, 0x22, 0x40, - 0x0a, 0x08, 0x50, 0x6f, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, - 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, - 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, - 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, - 0x22, 0x48, 0x0a, 0x04, 0x50, 0x6f, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x18, - 0x0a, 0x07, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x07, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x65, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x6f, 0x77, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x70, 0x6f, 0x77, 0x22, 0xb2, 0x01, 0x0a, 0x17, 0x41, - 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, - 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x73, 0x74, 0x61, - 0x72, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x64, 0x5f, 0x65, - 0x70, 0x6f, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x45, - 0x70, 0x6f, 0x63, 0x68, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, - 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x63, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x61, 0x74, - 0x63, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x77, 0x61, 0x74, 0x63, 0x68, 0x22, - 0xc4, 0x01, 0x0a, 0x11, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x65, - 0x70, 0x6f, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x72, - 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x64, 0x5f, 0x65, 0x70, - 0x6f, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x45, 0x70, - 0x6f, 0x63, 0x68, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, - 0x63, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x63, 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, - 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, - 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x4c, 0x0a, 0x0e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, - 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, - 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x50, 0x0a, 0x14, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x07, - 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, - 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x07, 0x68, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x32, 0xc0, 0x01, 0x0a, 0x17, 0x41, 0x63, 0x74, 0x69, 0x76, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x12, 0x4b, 0x0a, 0x06, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x25, 0x2e, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, - 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, - 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x30, 0x01, 0x12, - 0x58, 0x0a, 0x0d, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, - 0x12, 0x25, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, - 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, - 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x30, 0x01, 0x32, 0xae, 0x01, 0x0a, 0x11, 0x41, 0x63, - 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, - 0x45, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1f, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, - 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x52, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x48, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x1f, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, - 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, - 0x73, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x42, 0xb4, 0x01, 0x0a, 0x10, 0x63, - 0x6f, 0x6d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x42, - 0x0f, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, - 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, - 0x65, 0x73, 0x68, 0x2f, 0x76, 0x32, 0x3b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, - 0x76, 0x32, 0xa2, 0x02, 0x03, 0x53, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, - 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, - 0x65, 0x73, 0x68, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x18, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, - 0x73, 0x68, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0xea, 0x02, 0x0d, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x3a, 0x3a, 0x56, - 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_spacemesh_v2_activation_proto_rawDescOnce sync.Once - file_spacemesh_v2_activation_proto_rawDescData = file_spacemesh_v2_activation_proto_rawDesc -) - -func file_spacemesh_v2_activation_proto_rawDescGZIP() []byte { - file_spacemesh_v2_activation_proto_rawDescOnce.Do(func() { - file_spacemesh_v2_activation_proto_rawDescData = protoimpl.X.CompressGZIP(file_spacemesh_v2_activation_proto_rawDescData) - }) - return file_spacemesh_v2_activation_proto_rawDescData -} - -var file_spacemesh_v2_activation_proto_msgTypes = make([]protoimpl.MessageInfo, 12) -var file_spacemesh_v2_activation_proto_goTypes = []interface{}{ - (*Activation)(nil), // 0: spacemesh.v2.Activation - (*ActivationV1)(nil), // 1: spacemesh.v2.ActivationV1 - (*ActivationHeader)(nil), // 2: spacemesh.v2.ActivationHeader - (*ActivationHeaderV1)(nil), // 3: spacemesh.v2.ActivationHeaderV1 - (*VRFPostIndex)(nil), // 4: spacemesh.v2.VRFPostIndex - (*PoetProof)(nil), // 5: spacemesh.v2.PoetProof - (*PostMeta)(nil), // 6: spacemesh.v2.PostMeta - (*Post)(nil), // 7: spacemesh.v2.Post - (*ActivationStreamRequest)(nil), // 8: spacemesh.v2.ActivationStreamRequest - (*ActivationRequest)(nil), // 9: spacemesh.v2.ActivationRequest - (*ActivationList)(nil), // 10: spacemesh.v2.ActivationList - (*ActivationHeaderList)(nil), // 11: spacemesh.v2.ActivationHeaderList -} -var file_spacemesh_v2_activation_proto_depIdxs = []int32{ - 1, // 0: spacemesh.v2.Activation.v1:type_name -> spacemesh.v2.ActivationV1 - 7, // 1: spacemesh.v2.ActivationV1.initial_post:type_name -> spacemesh.v2.Post - 5, // 2: spacemesh.v2.ActivationV1.poet_proof:type_name -> spacemesh.v2.PoetProof - 7, // 3: spacemesh.v2.ActivationV1.post:type_name -> spacemesh.v2.Post - 6, // 4: spacemesh.v2.ActivationV1.post_meta:type_name -> spacemesh.v2.PostMeta - 4, // 5: spacemesh.v2.ActivationV1.vrf_post_index:type_name -> spacemesh.v2.VRFPostIndex - 3, // 6: spacemesh.v2.ActivationHeader.v1:type_name -> spacemesh.v2.ActivationHeaderV1 - 0, // 7: spacemesh.v2.ActivationList.activations:type_name -> spacemesh.v2.Activation - 2, // 8: spacemesh.v2.ActivationHeaderList.headers:type_name -> spacemesh.v2.ActivationHeader - 8, // 9: spacemesh.v2.ActivationStreamService.Stream:input_type -> spacemesh.v2.ActivationStreamRequest - 8, // 10: spacemesh.v2.ActivationStreamService.StreamHeaders:input_type -> spacemesh.v2.ActivationStreamRequest - 9, // 11: spacemesh.v2.ActivationService.List:input_type -> spacemesh.v2.ActivationRequest - 9, // 12: spacemesh.v2.ActivationService.ListHeaders:input_type -> spacemesh.v2.ActivationRequest - 0, // 13: spacemesh.v2.ActivationStreamService.Stream:output_type -> spacemesh.v2.Activation - 2, // 14: spacemesh.v2.ActivationStreamService.StreamHeaders:output_type -> spacemesh.v2.ActivationHeader - 10, // 15: spacemesh.v2.ActivationService.List:output_type -> spacemesh.v2.ActivationList - 11, // 16: spacemesh.v2.ActivationService.ListHeaders:output_type -> spacemesh.v2.ActivationHeaderList - 13, // [13:17] is the sub-list for method output_type - 9, // [9:13] is the sub-list for method input_type - 9, // [9:9] is the sub-list for extension type_name - 9, // [9:9] is the sub-list for extension extendee - 0, // [0:9] is the sub-list for field type_name -} - -func init() { file_spacemesh_v2_activation_proto_init() } -func file_spacemesh_v2_activation_proto_init() { - if File_spacemesh_v2_activation_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_spacemesh_v2_activation_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Activation); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_spacemesh_v2_activation_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ActivationV1); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_spacemesh_v2_activation_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ActivationHeader); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_spacemesh_v2_activation_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ActivationHeaderV1); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_spacemesh_v2_activation_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VRFPostIndex); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_spacemesh_v2_activation_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PoetProof); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_spacemesh_v2_activation_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PostMeta); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_spacemesh_v2_activation_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Post); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_spacemesh_v2_activation_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ActivationStreamRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_spacemesh_v2_activation_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ActivationRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_spacemesh_v2_activation_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ActivationList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_spacemesh_v2_activation_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ActivationHeaderList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_spacemesh_v2_activation_proto_msgTypes[0].OneofWrappers = []interface{}{ - (*Activation_V1)(nil), - } - file_spacemesh_v2_activation_proto_msgTypes[2].OneofWrappers = []interface{}{ - (*ActivationHeader_V1)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_spacemesh_v2_activation_proto_rawDesc, - NumEnums: 0, - NumMessages: 12, - NumExtensions: 0, - NumServices: 2, - }, - GoTypes: file_spacemesh_v2_activation_proto_goTypes, - DependencyIndexes: file_spacemesh_v2_activation_proto_depIdxs, - MessageInfos: file_spacemesh_v2_activation_proto_msgTypes, - }.Build() - File_spacemesh_v2_activation_proto = out.File - file_spacemesh_v2_activation_proto_rawDesc = nil - file_spacemesh_v2_activation_proto_goTypes = nil - file_spacemesh_v2_activation_proto_depIdxs = nil -} diff --git a/release/go/spacemesh/v2alpha1/activation.pb.go b/release/go/spacemesh/v2alpha1/activation.pb.go new file mode 100644 index 00000000..f13759bf --- /dev/null +++ b/release/go/spacemesh/v2alpha1/activation.pb.go @@ -0,0 +1,1025 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.31.0 +// protoc (unknown) +// source: spacemesh/v2alpha1/activation.proto + +package spacemeshv2alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type Activation struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Versioned: + // + // *Activation_V1 + Versioned isActivation_Versioned `protobuf_oneof:"versioned"` +} + +func (x *Activation) Reset() { + *x = Activation{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v2alpha1_activation_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Activation) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Activation) ProtoMessage() {} + +func (x *Activation) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v2alpha1_activation_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Activation.ProtoReflect.Descriptor instead. +func (*Activation) Descriptor() ([]byte, []int) { + return file_spacemesh_v2alpha1_activation_proto_rawDescGZIP(), []int{0} +} + +func (m *Activation) GetVersioned() isActivation_Versioned { + if m != nil { + return m.Versioned + } + return nil +} + +func (x *Activation) GetV1() *ActivationV1 { + if x, ok := x.GetVersioned().(*Activation_V1); ok { + return x.V1 + } + return nil +} + +type isActivation_Versioned interface { + isActivation_Versioned() +} + +type Activation_V1 struct { + V1 *ActivationV1 `protobuf:"bytes,1,opt,name=v1,proto3,oneof"` +} + +func (*Activation_V1) isActivation_Versioned() {} + +type ActivationV1 struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + NodeId []byte `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` + PublishEpoch uint32 `protobuf:"varint,4,opt,name=publish_epoch,json=publishEpoch,proto3" json:"publish_epoch,omitempty"` + Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` + PrevAtx []byte `protobuf:"bytes,6,opt,name=prev_atx,json=prevAtx,proto3" json:"prev_atx,omitempty"` + PositioningAtx []byte `protobuf:"bytes,7,opt,name=positioning_atx,json=positioningAtx,proto3" json:"positioning_atx,omitempty"` + CommittmentAtx []byte `protobuf:"bytes,8,opt,name=committment_atx,json=committmentAtx,proto3" json:"committment_atx,omitempty"` + InitialPost *Post `protobuf:"bytes,9,opt,name=initial_post,json=initialPost,proto3" json:"initial_post,omitempty"` + Coinbase string `protobuf:"bytes,10,opt,name=coinbase,proto3" json:"coinbase,omitempty"` + Units uint32 `protobuf:"varint,11,opt,name=units,proto3" json:"units,omitempty"` + BaseHeight uint32 `protobuf:"varint,12,opt,name=base_height,json=baseHeight,proto3" json:"base_height,omitempty"` + Ticks uint32 `protobuf:"varint,13,opt,name=ticks,proto3" json:"ticks,omitempty"` + PoetProof *PoetProof `protobuf:"bytes,14,opt,name=poet_proof,json=poetProof,proto3" json:"poet_proof,omitempty"` + Post *Post `protobuf:"bytes,15,opt,name=post,proto3" json:"post,omitempty"` + PostMeta *PostMeta `protobuf:"bytes,16,opt,name=post_meta,json=postMeta,proto3" json:"post_meta,omitempty"` + VrfPostIndex *VRFPostIndex `protobuf:"bytes,17,opt,name=vrf_post_index,json=vrfPostIndex,proto3" json:"vrf_post_index,omitempty"` +} + +func (x *ActivationV1) Reset() { + *x = ActivationV1{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v2alpha1_activation_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ActivationV1) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivationV1) ProtoMessage() {} + +func (x *ActivationV1) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v2alpha1_activation_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ActivationV1.ProtoReflect.Descriptor instead. +func (*ActivationV1) Descriptor() ([]byte, []int) { + return file_spacemesh_v2alpha1_activation_proto_rawDescGZIP(), []int{1} +} + +func (x *ActivationV1) GetId() []byte { + if x != nil { + return x.Id + } + return nil +} + +func (x *ActivationV1) GetNodeId() []byte { + if x != nil { + return x.NodeId + } + return nil +} + +func (x *ActivationV1) GetSignature() []byte { + if x != nil { + return x.Signature + } + return nil +} + +func (x *ActivationV1) GetPublishEpoch() uint32 { + if x != nil { + return x.PublishEpoch + } + return 0 +} + +func (x *ActivationV1) GetSequence() uint64 { + if x != nil { + return x.Sequence + } + return 0 +} + +func (x *ActivationV1) GetPrevAtx() []byte { + if x != nil { + return x.PrevAtx + } + return nil +} + +func (x *ActivationV1) GetPositioningAtx() []byte { + if x != nil { + return x.PositioningAtx + } + return nil +} + +func (x *ActivationV1) GetCommittmentAtx() []byte { + if x != nil { + return x.CommittmentAtx + } + return nil +} + +func (x *ActivationV1) GetInitialPost() *Post { + if x != nil { + return x.InitialPost + } + return nil +} + +func (x *ActivationV1) GetCoinbase() string { + if x != nil { + return x.Coinbase + } + return "" +} + +func (x *ActivationV1) GetUnits() uint32 { + if x != nil { + return x.Units + } + return 0 +} + +func (x *ActivationV1) GetBaseHeight() uint32 { + if x != nil { + return x.BaseHeight + } + return 0 +} + +func (x *ActivationV1) GetTicks() uint32 { + if x != nil { + return x.Ticks + } + return 0 +} + +func (x *ActivationV1) GetPoetProof() *PoetProof { + if x != nil { + return x.PoetProof + } + return nil +} + +func (x *ActivationV1) GetPost() *Post { + if x != nil { + return x.Post + } + return nil +} + +func (x *ActivationV1) GetPostMeta() *PostMeta { + if x != nil { + return x.PostMeta + } + return nil +} + +func (x *ActivationV1) GetVrfPostIndex() *VRFPostIndex { + if x != nil { + return x.VrfPostIndex + } + return nil +} + +type VRFPostIndex struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` +} + +func (x *VRFPostIndex) Reset() { + *x = VRFPostIndex{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v2alpha1_activation_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VRFPostIndex) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VRFPostIndex) ProtoMessage() {} + +func (x *VRFPostIndex) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v2alpha1_activation_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VRFPostIndex.ProtoReflect.Descriptor instead. +func (*VRFPostIndex) Descriptor() ([]byte, []int) { + return file_spacemesh_v2alpha1_activation_proto_rawDescGZIP(), []int{2} +} + +func (x *VRFPostIndex) GetNonce() uint64 { + if x != nil { + return x.Nonce + } + return 0 +} + +type PoetProof struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProofNodes [][]byte `protobuf:"bytes,1,rep,name=proof_nodes,json=proofNodes,proto3" json:"proof_nodes,omitempty"` + Leaf uint64 `protobuf:"varint,2,opt,name=leaf,proto3" json:"leaf,omitempty"` +} + +func (x *PoetProof) Reset() { + *x = PoetProof{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v2alpha1_activation_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PoetProof) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PoetProof) ProtoMessage() {} + +func (x *PoetProof) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v2alpha1_activation_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PoetProof.ProtoReflect.Descriptor instead. +func (*PoetProof) Descriptor() ([]byte, []int) { + return file_spacemesh_v2alpha1_activation_proto_rawDescGZIP(), []int{3} +} + +func (x *PoetProof) GetProofNodes() [][]byte { + if x != nil { + return x.ProofNodes + } + return nil +} + +func (x *PoetProof) GetLeaf() uint64 { + if x != nil { + return x.Leaf + } + return 0 +} + +type PostMeta struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Challenge []byte `protobuf:"bytes,1,opt,name=challenge,proto3" json:"challenge,omitempty"` + Labels uint64 `protobuf:"varint,2,opt,name=labels,proto3" json:"labels,omitempty"` +} + +func (x *PostMeta) Reset() { + *x = PostMeta{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v2alpha1_activation_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PostMeta) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PostMeta) ProtoMessage() {} + +func (x *PostMeta) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v2alpha1_activation_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PostMeta.ProtoReflect.Descriptor instead. +func (*PostMeta) Descriptor() ([]byte, []int) { + return file_spacemesh_v2alpha1_activation_proto_rawDescGZIP(), []int{4} +} + +func (x *PostMeta) GetChallenge() []byte { + if x != nil { + return x.Challenge + } + return nil +} + +func (x *PostMeta) GetLabels() uint64 { + if x != nil { + return x.Labels + } + return 0 +} + +type Post struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Nonce uint32 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` + Indices []byte `protobuf:"bytes,2,opt,name=indices,proto3" json:"indices,omitempty"` + Pow uint64 `protobuf:"varint,3,opt,name=pow,proto3" json:"pow,omitempty"` +} + +func (x *Post) Reset() { + *x = Post{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v2alpha1_activation_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Post) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Post) ProtoMessage() {} + +func (x *Post) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v2alpha1_activation_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Post.ProtoReflect.Descriptor instead. +func (*Post) Descriptor() ([]byte, []int) { + return file_spacemesh_v2alpha1_activation_proto_rawDescGZIP(), []int{5} +} + +func (x *Post) GetNonce() uint32 { + if x != nil { + return x.Nonce + } + return 0 +} + +func (x *Post) GetIndices() []byte { + if x != nil { + return x.Indices + } + return nil +} + +func (x *Post) GetPow() uint64 { + if x != nil { + return x.Pow + } + return 0 +} + +type ActivationStreamRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StartEpoch uint32 `protobuf:"varint,1,opt,name=start_epoch,json=startEpoch,proto3" json:"start_epoch,omitempty"` + EndEpoch uint32 `protobuf:"varint,2,opt,name=end_epoch,json=endEpoch,proto3" json:"end_epoch,omitempty"` + Id []byte `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` + NodeId []byte `protobuf:"bytes,4,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + // CoinbaseFilter is not supported by database index and will result in sequential scan. + // Apply EpochFilter together with CoinbaseFilter for better performance. + Coinbase string `protobuf:"bytes,5,opt,name=coinbase,proto3" json:"coinbase,omitempty"` + Watch bool `protobuf:"varint,6,opt,name=watch,proto3" json:"watch,omitempty"` +} + +func (x *ActivationStreamRequest) Reset() { + *x = ActivationStreamRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v2alpha1_activation_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ActivationStreamRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivationStreamRequest) ProtoMessage() {} + +func (x *ActivationStreamRequest) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v2alpha1_activation_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ActivationStreamRequest.ProtoReflect.Descriptor instead. +func (*ActivationStreamRequest) Descriptor() ([]byte, []int) { + return file_spacemesh_v2alpha1_activation_proto_rawDescGZIP(), []int{6} +} + +func (x *ActivationStreamRequest) GetStartEpoch() uint32 { + if x != nil { + return x.StartEpoch + } + return 0 +} + +func (x *ActivationStreamRequest) GetEndEpoch() uint32 { + if x != nil { + return x.EndEpoch + } + return 0 +} + +func (x *ActivationStreamRequest) GetId() []byte { + if x != nil { + return x.Id + } + return nil +} + +func (x *ActivationStreamRequest) GetNodeId() []byte { + if x != nil { + return x.NodeId + } + return nil +} + +func (x *ActivationStreamRequest) GetCoinbase() string { + if x != nil { + return x.Coinbase + } + return "" +} + +func (x *ActivationStreamRequest) GetWatch() bool { + if x != nil { + return x.Watch + } + return false +} + +type ActivationRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StartEpoch uint32 `protobuf:"varint,1,opt,name=start_epoch,json=startEpoch,proto3" json:"start_epoch,omitempty"` + EndEpoch uint32 `protobuf:"varint,2,opt,name=end_epoch,json=endEpoch,proto3" json:"end_epoch,omitempty"` + Id []byte `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` + NodeId []byte `protobuf:"bytes,4,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + // CoinbaseFilter is not supported by database index and will result in sequential scan. + // Apply EpochFilter together with CoinbaseFilter for better performance. + Coinbase string `protobuf:"bytes,5,opt,name=coinbase,proto3" json:"coinbase,omitempty"` + Offset uint64 `protobuf:"varint,6,opt,name=offset,proto3" json:"offset,omitempty"` + Limit uint64 `protobuf:"varint,7,opt,name=limit,proto3" json:"limit,omitempty"` +} + +func (x *ActivationRequest) Reset() { + *x = ActivationRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v2alpha1_activation_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ActivationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivationRequest) ProtoMessage() {} + +func (x *ActivationRequest) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v2alpha1_activation_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ActivationRequest.ProtoReflect.Descriptor instead. +func (*ActivationRequest) Descriptor() ([]byte, []int) { + return file_spacemesh_v2alpha1_activation_proto_rawDescGZIP(), []int{7} +} + +func (x *ActivationRequest) GetStartEpoch() uint32 { + if x != nil { + return x.StartEpoch + } + return 0 +} + +func (x *ActivationRequest) GetEndEpoch() uint32 { + if x != nil { + return x.EndEpoch + } + return 0 +} + +func (x *ActivationRequest) GetId() []byte { + if x != nil { + return x.Id + } + return nil +} + +func (x *ActivationRequest) GetNodeId() []byte { + if x != nil { + return x.NodeId + } + return nil +} + +func (x *ActivationRequest) GetCoinbase() string { + if x != nil { + return x.Coinbase + } + return "" +} + +func (x *ActivationRequest) GetOffset() uint64 { + if x != nil { + return x.Offset + } + return 0 +} + +func (x *ActivationRequest) GetLimit() uint64 { + if x != nil { + return x.Limit + } + return 0 +} + +type ActivationList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Activations []*Activation `protobuf:"bytes,1,rep,name=activations,proto3" json:"activations,omitempty"` +} + +func (x *ActivationList) Reset() { + *x = ActivationList{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v2alpha1_activation_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ActivationList) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivationList) ProtoMessage() {} + +func (x *ActivationList) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v2alpha1_activation_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ActivationList.ProtoReflect.Descriptor instead. +func (*ActivationList) Descriptor() ([]byte, []int) { + return file_spacemesh_v2alpha1_activation_proto_rawDescGZIP(), []int{8} +} + +func (x *ActivationList) GetActivations() []*Activation { + if x != nil { + return x.Activations + } + return nil +} + +var File_spacemesh_v2alpha1_activation_proto protoreflect.FileDescriptor + +var file_spacemesh_v2alpha1_activation_proto_rawDesc = []byte{ + 0x0a, 0x23, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x32, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, + 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x22, 0x4d, 0x0a, 0x0a, 0x41, 0x63, 0x74, + 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x02, 0x76, 0x31, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, + 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x56, 0x31, 0x48, 0x00, 0x52, 0x02, 0x76, 0x31, 0x42, 0x0b, 0x0a, 0x09, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x64, 0x22, 0x98, 0x05, 0x0a, 0x0c, 0x41, 0x63, 0x74, + 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x31, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, + 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, + 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, + 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x5f, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, + 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, + 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, + 0x65, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x61, 0x74, 0x78, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x72, 0x65, 0x76, 0x41, 0x74, 0x78, 0x12, 0x27, 0x0a, 0x0f, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x74, 0x78, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x69, + 0x6e, 0x67, 0x41, 0x74, 0x78, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, + 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x78, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, + 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x78, 0x12, 0x3b, + 0x0a, 0x0c, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x18, 0x09, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, + 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x0b, + 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x50, 0x6f, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x63, + 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, + 0x6f, 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x75, 0x6e, 0x69, 0x74, 0x73, + 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x12, 0x1f, 0x0a, + 0x0b, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x0c, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x0a, 0x62, 0x61, 0x73, 0x65, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, + 0x0a, 0x05, 0x74, 0x69, 0x63, 0x6b, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x74, + 0x69, 0x63, 0x6b, 0x73, 0x12, 0x3c, 0x0a, 0x0a, 0x70, 0x6f, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x6f, + 0x6f, 0x66, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x6f, + 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x09, 0x70, 0x6f, 0x65, 0x74, 0x50, 0x72, 0x6f, + 0x6f, 0x66, 0x12, 0x2c, 0x0a, 0x04, 0x70, 0x6f, 0x73, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x18, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x04, 0x70, 0x6f, 0x73, 0x74, + 0x12, 0x39, 0x0a, 0x09, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x10, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, + 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x4d, 0x65, 0x74, + 0x61, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x46, 0x0a, 0x0e, 0x76, + 0x72, 0x66, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x11, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, + 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x52, 0x46, 0x50, 0x6f, 0x73, 0x74, + 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x0c, 0x76, 0x72, 0x66, 0x50, 0x6f, 0x73, 0x74, 0x49, 0x6e, + 0x64, 0x65, 0x78, 0x22, 0x24, 0x0a, 0x0c, 0x56, 0x52, 0x46, 0x50, 0x6f, 0x73, 0x74, 0x49, 0x6e, + 0x64, 0x65, 0x78, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x22, 0x40, 0x0a, 0x09, 0x50, 0x6f, 0x65, + 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f, + 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0a, 0x70, 0x72, 0x6f, + 0x6f, 0x66, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x65, 0x61, 0x66, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x6c, 0x65, 0x61, 0x66, 0x22, 0x40, 0x0a, 0x08, 0x50, + 0x6f, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x6c, 0x6c, + 0x65, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6c, + 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x22, 0x48, 0x0a, + 0x04, 0x50, 0x6f, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x69, + 0x6e, 0x64, 0x69, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x69, 0x6e, + 0x64, 0x69, 0x63, 0x65, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x6f, 0x77, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x03, 0x70, 0x6f, 0x77, 0x22, 0xb2, 0x01, 0x0a, 0x17, 0x41, 0x63, 0x74, 0x69, + 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x65, 0x70, 0x6f, + 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x45, + 0x70, 0x6f, 0x63, 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x64, 0x5f, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x45, 0x70, 0x6f, 0x63, + 0x68, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, + 0x64, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, + 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, + 0x69, 0x6e, 0x62, 0x61, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x61, 0x74, 0x63, 0x68, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x77, 0x61, 0x74, 0x63, 0x68, 0x22, 0xc4, 0x01, 0x0a, + 0x11, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x45, 0x70, + 0x6f, 0x63, 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x64, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x45, 0x70, 0x6f, 0x63, 0x68, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x69, + 0x6e, 0x62, 0x61, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x69, + 0x6e, 0x62, 0x61, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, + 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, + 0x6d, 0x69, 0x74, 0x22, 0x52, 0x0a, 0x0e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x61, 0x63, 0x74, 0x69, + 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x32, 0x72, 0x0a, 0x17, 0x41, 0x63, 0x74, 0x69, 0x76, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x12, 0x57, 0x0a, 0x06, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x2b, 0x2e, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x65, + 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x41, + 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x30, 0x01, 0x32, 0x66, 0x0a, 0x11, 0x41, + 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x12, 0x51, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x25, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x41, 0x63, + 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x22, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, + 0x69, 0x73, 0x74, 0x42, 0xde, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0f, + 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x4a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, + 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, + 0x73, 0x68, 0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x6d, 0x65, 0x73, 0x68, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, + 0x53, 0x58, 0x58, 0xaa, 0x02, 0x12, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, + 0x56, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x12, 0x53, 0x70, 0x61, 0x63, 0x65, + 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x1e, + 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x32, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, + 0x13, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x3a, 0x3a, 0x56, 0x32, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_spacemesh_v2alpha1_activation_proto_rawDescOnce sync.Once + file_spacemesh_v2alpha1_activation_proto_rawDescData = file_spacemesh_v2alpha1_activation_proto_rawDesc +) + +func file_spacemesh_v2alpha1_activation_proto_rawDescGZIP() []byte { + file_spacemesh_v2alpha1_activation_proto_rawDescOnce.Do(func() { + file_spacemesh_v2alpha1_activation_proto_rawDescData = protoimpl.X.CompressGZIP(file_spacemesh_v2alpha1_activation_proto_rawDescData) + }) + return file_spacemesh_v2alpha1_activation_proto_rawDescData +} + +var file_spacemesh_v2alpha1_activation_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_spacemesh_v2alpha1_activation_proto_goTypes = []interface{}{ + (*Activation)(nil), // 0: spacemesh.v2alpha1.Activation + (*ActivationV1)(nil), // 1: spacemesh.v2alpha1.ActivationV1 + (*VRFPostIndex)(nil), // 2: spacemesh.v2alpha1.VRFPostIndex + (*PoetProof)(nil), // 3: spacemesh.v2alpha1.PoetProof + (*PostMeta)(nil), // 4: spacemesh.v2alpha1.PostMeta + (*Post)(nil), // 5: spacemesh.v2alpha1.Post + (*ActivationStreamRequest)(nil), // 6: spacemesh.v2alpha1.ActivationStreamRequest + (*ActivationRequest)(nil), // 7: spacemesh.v2alpha1.ActivationRequest + (*ActivationList)(nil), // 8: spacemesh.v2alpha1.ActivationList +} +var file_spacemesh_v2alpha1_activation_proto_depIdxs = []int32{ + 1, // 0: spacemesh.v2alpha1.Activation.v1:type_name -> spacemesh.v2alpha1.ActivationV1 + 5, // 1: spacemesh.v2alpha1.ActivationV1.initial_post:type_name -> spacemesh.v2alpha1.Post + 3, // 2: spacemesh.v2alpha1.ActivationV1.poet_proof:type_name -> spacemesh.v2alpha1.PoetProof + 5, // 3: spacemesh.v2alpha1.ActivationV1.post:type_name -> spacemesh.v2alpha1.Post + 4, // 4: spacemesh.v2alpha1.ActivationV1.post_meta:type_name -> spacemesh.v2alpha1.PostMeta + 2, // 5: spacemesh.v2alpha1.ActivationV1.vrf_post_index:type_name -> spacemesh.v2alpha1.VRFPostIndex + 0, // 6: spacemesh.v2alpha1.ActivationList.activations:type_name -> spacemesh.v2alpha1.Activation + 6, // 7: spacemesh.v2alpha1.ActivationStreamService.Stream:input_type -> spacemesh.v2alpha1.ActivationStreamRequest + 7, // 8: spacemesh.v2alpha1.ActivationService.List:input_type -> spacemesh.v2alpha1.ActivationRequest + 0, // 9: spacemesh.v2alpha1.ActivationStreamService.Stream:output_type -> spacemesh.v2alpha1.Activation + 8, // 10: spacemesh.v2alpha1.ActivationService.List:output_type -> spacemesh.v2alpha1.ActivationList + 9, // [9:11] is the sub-list for method output_type + 7, // [7:9] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name +} + +func init() { file_spacemesh_v2alpha1_activation_proto_init() } +func file_spacemesh_v2alpha1_activation_proto_init() { + if File_spacemesh_v2alpha1_activation_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_spacemesh_v2alpha1_activation_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Activation); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v2alpha1_activation_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivationV1); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v2alpha1_activation_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VRFPostIndex); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v2alpha1_activation_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PoetProof); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v2alpha1_activation_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PostMeta); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v2alpha1_activation_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Post); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v2alpha1_activation_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivationStreamRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v2alpha1_activation_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivationRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v2alpha1_activation_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivationList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_spacemesh_v2alpha1_activation_proto_msgTypes[0].OneofWrappers = []interface{}{ + (*Activation_V1)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_spacemesh_v2alpha1_activation_proto_rawDesc, + NumEnums: 0, + NumMessages: 9, + NumExtensions: 0, + NumServices: 2, + }, + GoTypes: file_spacemesh_v2alpha1_activation_proto_goTypes, + DependencyIndexes: file_spacemesh_v2alpha1_activation_proto_depIdxs, + MessageInfos: file_spacemesh_v2alpha1_activation_proto_msgTypes, + }.Build() + File_spacemesh_v2alpha1_activation_proto = out.File + file_spacemesh_v2alpha1_activation_proto_rawDesc = nil + file_spacemesh_v2alpha1_activation_proto_goTypes = nil + file_spacemesh_v2alpha1_activation_proto_depIdxs = nil +} diff --git a/release/go/spacemesh/v2/activation.pb.gw.go b/release/go/spacemesh/v2alpha1/activation.pb.gw.go similarity index 60% rename from release/go/spacemesh/v2/activation.pb.gw.go rename to release/go/spacemesh/v2alpha1/activation.pb.gw.go index b8e84d41..8cf05dae 100644 --- a/release/go/spacemesh/v2/activation.pb.gw.go +++ b/release/go/spacemesh/v2alpha1/activation.pb.gw.go @@ -1,12 +1,12 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: spacemesh/v2/activation.proto +// source: spacemesh/v2alpha1/activation.proto /* -Package spacemeshv2 is a reverse proxy. +Package spacemeshv2alpha1 is a reverse proxy. It translates gRPC into RESTful JSON APIs. */ -package spacemeshv2 +package spacemeshv2alpha1 import ( "context" @@ -56,31 +56,6 @@ func request_ActivationStreamService_Stream_0(ctx context.Context, marshaler run } -func request_ActivationStreamService_StreamHeaders_0(ctx context.Context, marshaler runtime.Marshaler, client ActivationStreamServiceClient, req *http.Request, pathParams map[string]string) (ActivationStreamService_StreamHeadersClient, runtime.ServerMetadata, error) { - var protoReq ActivationStreamRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - stream, err := client.StreamHeaders(ctx, &protoReq) - if err != nil { - return nil, metadata, err - } - header, err := stream.Header() - if err != nil { - return nil, metadata, err - } - metadata.HeaderMD = header - return stream, metadata, nil - -} - func request_ActivationService_List_0(ctx context.Context, marshaler runtime.Marshaler, client ActivationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ActivationRequest var metadata runtime.ServerMetadata @@ -115,40 +90,6 @@ func local_request_ActivationService_List_0(ctx context.Context, marshaler runti } -func request_ActivationService_ListHeaders_0(ctx context.Context, marshaler runtime.Marshaler, client ActivationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ActivationRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListHeaders(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ActivationService_ListHeaders_0(ctx context.Context, marshaler runtime.Marshaler, server ActivationServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ActivationRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ListHeaders(ctx, &protoReq) - return msg, metadata, err - -} - // RegisterActivationStreamServiceHandlerServer registers the http handlers for service ActivationStreamService to "mux". // UnaryRPC :call ActivationStreamServiceServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -162,13 +103,6 @@ func RegisterActivationStreamServiceHandlerServer(ctx context.Context, mux *runt return }) - mux.Handle("POST", pattern_ActivationStreamService_StreamHeaders_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") - _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - }) - return nil } @@ -186,7 +120,7 @@ func RegisterActivationServiceHandlerServer(ctx context.Context, mux *runtime.Se inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/spacemesh.v2.ActivationService/List", runtime.WithHTTPPathPattern("/spacemesh.v2.ActivationService/List")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/spacemesh.v2alpha1.ActivationService/List", runtime.WithHTTPPathPattern("/spacemesh.v2alpha1.ActivationService/List")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -203,31 +137,6 @@ func RegisterActivationServiceHandlerServer(ctx context.Context, mux *runtime.Se }) - mux.Handle("POST", pattern_ActivationService_ListHeaders_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) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/spacemesh.v2.ActivationService/ListHeaders", runtime.WithHTTPPathPattern("/spacemesh.v2.ActivationService/ListHeaders")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ActivationService_ListHeaders_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_ActivationService_ListHeaders_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - return nil } @@ -275,7 +184,7 @@ func RegisterActivationStreamServiceHandlerClient(ctx context.Context, mux *runt inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spacemesh.v2.ActivationStreamService/Stream", runtime.WithHTTPPathPattern("/spacemesh.v2.ActivationStreamService/Stream")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spacemesh.v2alpha1.ActivationStreamService/Stream", runtime.WithHTTPPathPattern("/spacemesh.v2alpha1.ActivationStreamService/Stream")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -291,41 +200,15 @@ func RegisterActivationStreamServiceHandlerClient(ctx context.Context, mux *runt }) - mux.Handle("POST", pattern_ActivationStreamService_StreamHeaders_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) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spacemesh.v2.ActivationStreamService/StreamHeaders", runtime.WithHTTPPathPattern("/spacemesh.v2.ActivationStreamService/StreamHeaders")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ActivationStreamService_StreamHeaders_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_ActivationStreamService_StreamHeaders_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) - - }) - return nil } var ( - pattern_ActivationStreamService_Stream_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"spacemesh.v2.ActivationStreamService", "Stream"}, "")) - - pattern_ActivationStreamService_StreamHeaders_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"spacemesh.v2.ActivationStreamService", "StreamHeaders"}, "")) + pattern_ActivationStreamService_Stream_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"spacemesh.v2alpha1.ActivationStreamService", "Stream"}, "")) ) var ( forward_ActivationStreamService_Stream_0 = runtime.ForwardResponseStream - - forward_ActivationStreamService_StreamHeaders_0 = runtime.ForwardResponseStream ) // RegisterActivationServiceHandlerFromEndpoint is same as RegisterActivationServiceHandler but @@ -372,7 +255,7 @@ func RegisterActivationServiceHandlerClient(ctx context.Context, mux *runtime.Se inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spacemesh.v2.ActivationService/List", runtime.WithHTTPPathPattern("/spacemesh.v2.ActivationService/List")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spacemesh.v2alpha1.ActivationService/List", runtime.WithHTTPPathPattern("/spacemesh.v2alpha1.ActivationService/List")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -388,39 +271,13 @@ func RegisterActivationServiceHandlerClient(ctx context.Context, mux *runtime.Se }) - mux.Handle("POST", pattern_ActivationService_ListHeaders_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) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spacemesh.v2.ActivationService/ListHeaders", runtime.WithHTTPPathPattern("/spacemesh.v2.ActivationService/ListHeaders")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ActivationService_ListHeaders_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_ActivationService_ListHeaders_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - return nil } var ( - pattern_ActivationService_List_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"spacemesh.v2.ActivationService", "List"}, "")) - - pattern_ActivationService_ListHeaders_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"spacemesh.v2.ActivationService", "ListHeaders"}, "")) + pattern_ActivationService_List_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"spacemesh.v2alpha1.ActivationService", "List"}, "")) ) var ( forward_ActivationService_List_0 = runtime.ForwardResponseMessage - - forward_ActivationService_ListHeaders_0 = runtime.ForwardResponseMessage ) diff --git a/release/go/spacemesh/v2/activation_grpc.pb.go b/release/go/spacemesh/v2alpha1/activation_grpc.pb.go similarity index 63% rename from release/go/spacemesh/v2/activation_grpc.pb.go rename to release/go/spacemesh/v2alpha1/activation_grpc.pb.go index c1ce7fb2..f3467b43 100644 --- a/release/go/spacemesh/v2/activation_grpc.pb.go +++ b/release/go/spacemesh/v2alpha1/activation_grpc.pb.go @@ -2,9 +2,9 @@ // versions: // - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) -// source: spacemesh/v2/activation.proto +// source: spacemesh/v2alpha1/activation.proto -package spacemeshv2 +package spacemeshv2alpha1 import ( context "context" @@ -19,8 +19,7 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - ActivationStreamService_Stream_FullMethodName = "/spacemesh.v2.ActivationStreamService/Stream" - ActivationStreamService_StreamHeaders_FullMethodName = "/spacemesh.v2.ActivationStreamService/StreamHeaders" + ActivationStreamService_Stream_FullMethodName = "/spacemesh.v2alpha1.ActivationStreamService/Stream" ) // ActivationStreamServiceClient is the client API for ActivationStreamService service. @@ -28,7 +27,6 @@ const ( // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type ActivationStreamServiceClient interface { Stream(ctx context.Context, in *ActivationStreamRequest, opts ...grpc.CallOption) (ActivationStreamService_StreamClient, error) - StreamHeaders(ctx context.Context, in *ActivationStreamRequest, opts ...grpc.CallOption) (ActivationStreamService_StreamHeadersClient, error) } type activationStreamServiceClient struct { @@ -71,44 +69,11 @@ func (x *activationStreamServiceStreamClient) Recv() (*Activation, error) { return m, nil } -func (c *activationStreamServiceClient) StreamHeaders(ctx context.Context, in *ActivationStreamRequest, opts ...grpc.CallOption) (ActivationStreamService_StreamHeadersClient, error) { - stream, err := c.cc.NewStream(ctx, &ActivationStreamService_ServiceDesc.Streams[1], ActivationStreamService_StreamHeaders_FullMethodName, opts...) - if err != nil { - return nil, err - } - x := &activationStreamServiceStreamHeadersClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ActivationStreamService_StreamHeadersClient interface { - Recv() (*ActivationHeader, error) - grpc.ClientStream -} - -type activationStreamServiceStreamHeadersClient struct { - grpc.ClientStream -} - -func (x *activationStreamServiceStreamHeadersClient) Recv() (*ActivationHeader, error) { - m := new(ActivationHeader) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - // ActivationStreamServiceServer is the server API for ActivationStreamService service. // All implementations should embed UnimplementedActivationStreamServiceServer // for forward compatibility type ActivationStreamServiceServer interface { Stream(*ActivationStreamRequest, ActivationStreamService_StreamServer) error - StreamHeaders(*ActivationStreamRequest, ActivationStreamService_StreamHeadersServer) error } // UnimplementedActivationStreamServiceServer should be embedded to have forward compatible implementations. @@ -118,9 +83,6 @@ type UnimplementedActivationStreamServiceServer struct { func (UnimplementedActivationStreamServiceServer) Stream(*ActivationStreamRequest, ActivationStreamService_StreamServer) error { return status.Errorf(codes.Unimplemented, "method Stream not implemented") } -func (UnimplementedActivationStreamServiceServer) StreamHeaders(*ActivationStreamRequest, ActivationStreamService_StreamHeadersServer) error { - return status.Errorf(codes.Unimplemented, "method StreamHeaders not implemented") -} // UnsafeActivationStreamServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ActivationStreamServiceServer will @@ -154,32 +116,11 @@ func (x *activationStreamServiceStreamServer) Send(m *Activation) error { return x.ServerStream.SendMsg(m) } -func _ActivationStreamService_StreamHeaders_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ActivationStreamRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ActivationStreamServiceServer).StreamHeaders(m, &activationStreamServiceStreamHeadersServer{stream}) -} - -type ActivationStreamService_StreamHeadersServer interface { - Send(*ActivationHeader) error - grpc.ServerStream -} - -type activationStreamServiceStreamHeadersServer struct { - grpc.ServerStream -} - -func (x *activationStreamServiceStreamHeadersServer) Send(m *ActivationHeader) error { - return x.ServerStream.SendMsg(m) -} - // ActivationStreamService_ServiceDesc is the grpc.ServiceDesc for ActivationStreamService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var ActivationStreamService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "spacemesh.v2.ActivationStreamService", + ServiceName: "spacemesh.v2alpha1.ActivationStreamService", HandlerType: (*ActivationStreamServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ @@ -188,18 +129,12 @@ var ActivationStreamService_ServiceDesc = grpc.ServiceDesc{ Handler: _ActivationStreamService_Stream_Handler, ServerStreams: true, }, - { - StreamName: "StreamHeaders", - Handler: _ActivationStreamService_StreamHeaders_Handler, - ServerStreams: true, - }, }, - Metadata: "spacemesh/v2/activation.proto", + Metadata: "spacemesh/v2alpha1/activation.proto", } const ( - ActivationService_List_FullMethodName = "/spacemesh.v2.ActivationService/List" - ActivationService_ListHeaders_FullMethodName = "/spacemesh.v2.ActivationService/ListHeaders" + ActivationService_List_FullMethodName = "/spacemesh.v2alpha1.ActivationService/List" ) // ActivationServiceClient is the client API for ActivationService service. @@ -207,7 +142,6 @@ const ( // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type ActivationServiceClient interface { List(ctx context.Context, in *ActivationRequest, opts ...grpc.CallOption) (*ActivationList, error) - ListHeaders(ctx context.Context, in *ActivationRequest, opts ...grpc.CallOption) (*ActivationHeaderList, error) } type activationServiceClient struct { @@ -227,21 +161,11 @@ func (c *activationServiceClient) List(ctx context.Context, in *ActivationReques return out, nil } -func (c *activationServiceClient) ListHeaders(ctx context.Context, in *ActivationRequest, opts ...grpc.CallOption) (*ActivationHeaderList, error) { - out := new(ActivationHeaderList) - err := c.cc.Invoke(ctx, ActivationService_ListHeaders_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - // ActivationServiceServer is the server API for ActivationService service. // All implementations should embed UnimplementedActivationServiceServer // for forward compatibility type ActivationServiceServer interface { List(context.Context, *ActivationRequest) (*ActivationList, error) - ListHeaders(context.Context, *ActivationRequest) (*ActivationHeaderList, error) } // UnimplementedActivationServiceServer should be embedded to have forward compatible implementations. @@ -251,9 +175,6 @@ type UnimplementedActivationServiceServer struct { func (UnimplementedActivationServiceServer) List(context.Context, *ActivationRequest) (*ActivationList, error) { return nil, status.Errorf(codes.Unimplemented, "method List not implemented") } -func (UnimplementedActivationServiceServer) ListHeaders(context.Context, *ActivationRequest) (*ActivationHeaderList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListHeaders not implemented") -} // UnsafeActivationServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ActivationServiceServer will @@ -284,40 +205,18 @@ func _ActivationService_List_Handler(srv interface{}, ctx context.Context, dec f return interceptor(ctx, in, info, handler) } -func _ActivationService_ListHeaders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ActivationRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ActivationServiceServer).ListHeaders(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ActivationService_ListHeaders_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ActivationServiceServer).ListHeaders(ctx, req.(*ActivationRequest)) - } - return interceptor(ctx, in, info, handler) -} - // ActivationService_ServiceDesc is the grpc.ServiceDesc for ActivationService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var ActivationService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "spacemesh.v2.ActivationService", + ServiceName: "spacemesh.v2alpha1.ActivationService", HandlerType: (*ActivationServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "List", Handler: _ActivationService_List_Handler, }, - { - MethodName: "ListHeaders", - Handler: _ActivationService_ListHeaders_Handler, - }, }, Streams: []grpc.StreamDesc{}, - Metadata: "spacemesh/v2/activation.proto", + Metadata: "spacemesh/v2alpha1/activation.proto", } diff --git a/spacemesh/v2/activation.proto b/spacemesh/v2alpha1/activation.proto similarity index 77% rename from spacemesh/v2/activation.proto rename to spacemesh/v2alpha1/activation.proto index f6e02188..ac8221db 100644 --- a/spacemesh/v2/activation.proto +++ b/spacemesh/v2alpha1/activation.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -package spacemesh.v2; +package spacemesh.v2alpha1; message Activation { oneof versioned { @@ -28,22 +28,6 @@ message ActivationV1 { VRFPostIndex vrf_post_index = 17; } -message ActivationHeader { - oneof versioned { - ActivationHeaderV1 v1 = 1; - } -} - -message ActivationHeaderV1 { - bytes id = 1; - bytes node_id = 2; - uint32 publish_epoch = 3; - string coinbase = 4; - uint32 units = 5; - uint32 base_height = 6; - uint32 ticks = 7; -} - message VRFPostIndex { uint64 nonce = 1; } @@ -75,10 +59,8 @@ message ActivationStreamRequest { bool watch = 6; } - service ActivationStreamService { rpc Stream(ActivationStreamRequest) returns (stream Activation); - rpc StreamHeaders(ActivationStreamRequest) returns (stream ActivationHeader); } message ActivationRequest { @@ -97,11 +79,6 @@ message ActivationList { repeated Activation activations = 1; } -message ActivationHeaderList { - repeated ActivationHeader headers = 1; -} - service ActivationService { rpc List(ActivationRequest) returns (ActivationList); - rpc ListHeaders(ActivationRequest) returns (ActivationHeaderList); } \ No newline at end of file From 83bc5a25a78ef597a7b589fb7c926a5817e5d70c Mon Sep 17 00:00:00 2001 From: Kacper Sawicki Date: Mon, 12 Feb 2024 19:58:22 +0100 Subject: [PATCH 20/20] Add ActivationsCount rpc --- .../go/spacemesh/v2alpha1/activation.pb.go | 243 ++++++++++++++---- .../go/spacemesh/v2alpha1/activation.pb.gw.go | 85 ++++++ .../spacemesh/v2alpha1/activation_grpc.pb.go | 39 ++- spacemesh/v2alpha1/activation.proto | 9 + 4 files changed, 321 insertions(+), 55 deletions(-) diff --git a/release/go/spacemesh/v2alpha1/activation.pb.go b/release/go/spacemesh/v2alpha1/activation.pb.go index f13759bf..56f5405d 100644 --- a/release/go/spacemesh/v2alpha1/activation.pb.go +++ b/release/go/spacemesh/v2alpha1/activation.pb.go @@ -715,6 +715,100 @@ func (x *ActivationList) GetActivations() []*Activation { return nil } +type ActivationsCountRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Epoch uint32 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"` +} + +func (x *ActivationsCountRequest) Reset() { + *x = ActivationsCountRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v2alpha1_activation_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ActivationsCountRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivationsCountRequest) ProtoMessage() {} + +func (x *ActivationsCountRequest) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v2alpha1_activation_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ActivationsCountRequest.ProtoReflect.Descriptor instead. +func (*ActivationsCountRequest) Descriptor() ([]byte, []int) { + return file_spacemesh_v2alpha1_activation_proto_rawDescGZIP(), []int{9} +} + +func (x *ActivationsCountRequest) GetEpoch() uint32 { + if x != nil { + return x.Epoch + } + return 0 +} + +type ActivationsCountResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Count uint32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` +} + +func (x *ActivationsCountResponse) Reset() { + *x = ActivationsCountResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v2alpha1_activation_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ActivationsCountResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivationsCountResponse) ProtoMessage() {} + +func (x *ActivationsCountResponse) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v2alpha1_activation_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ActivationsCountResponse.ProtoReflect.Descriptor instead. +func (*ActivationsCountResponse) Descriptor() ([]byte, []int) { + return file_spacemesh_v2alpha1_activation_proto_rawDescGZIP(), []int{10} +} + +func (x *ActivationsCountResponse) GetCount() uint32 { + if x != nil { + return x.Count + } + return 0 +} + var File_spacemesh_v2alpha1_activation_proto protoreflect.FileDescriptor var file_spacemesh_v2alpha1_activation_proto_rawDesc = []byte{ @@ -812,35 +906,48 @@ var file_spacemesh_v2alpha1_activation_proto_rawDesc = []byte{ 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x61, 0x63, 0x74, 0x69, - 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x32, 0x72, 0x0a, 0x17, 0x41, 0x63, 0x74, 0x69, 0x76, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x12, 0x57, 0x0a, 0x06, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x2b, 0x2e, 0x73, + 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x2f, 0x0a, 0x17, 0x41, 0x63, 0x74, 0x69, 0x76, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x22, 0x30, 0x0a, 0x18, 0x41, 0x63, 0x74, 0x69, + 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x32, 0x72, 0x0a, 0x17, 0x41, 0x63, + 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x57, 0x0a, 0x06, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, + 0x2b, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, + 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x30, 0x01, 0x32, 0xd5, + 0x01, 0x0a, 0x11, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x12, 0x51, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x25, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x65, - 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x41, - 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x30, 0x01, 0x32, 0x66, 0x0a, 0x11, 0x41, - 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x12, 0x51, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x25, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, + 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x6d, 0x0a, 0x10, 0x41, 0x63, 0x74, 0x69, 0x76, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2b, 0x2e, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x43, 0x6f, 0x75, 0x6e, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x41, 0x63, - 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x22, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, - 0x69, 0x73, 0x74, 0x42, 0xde, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0f, - 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x4a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, - 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, - 0x73, 0x68, 0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x6d, 0x65, 0x73, 0x68, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, - 0x53, 0x58, 0x58, 0xaa, 0x02, 0x12, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, - 0x56, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x12, 0x53, 0x70, 0x61, 0x63, 0x65, - 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x1e, - 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x32, 0x61, 0x6c, 0x70, 0x68, - 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x13, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x3a, 0x3a, 0x56, 0x32, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xde, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x42, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0xa2, 0x02, 0x03, 0x53, 0x58, 0x58, 0xaa, 0x02, 0x12, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, + 0x73, 0x68, 0x2e, 0x56, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x12, 0x53, 0x70, + 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0xe2, 0x02, 0x1e, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x32, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0xea, 0x02, 0x13, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x3a, 0x3a, 0x56, + 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -855,35 +962,39 @@ func file_spacemesh_v2alpha1_activation_proto_rawDescGZIP() []byte { return file_spacemesh_v2alpha1_activation_proto_rawDescData } -var file_spacemesh_v2alpha1_activation_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_spacemesh_v2alpha1_activation_proto_msgTypes = make([]protoimpl.MessageInfo, 11) var file_spacemesh_v2alpha1_activation_proto_goTypes = []interface{}{ - (*Activation)(nil), // 0: spacemesh.v2alpha1.Activation - (*ActivationV1)(nil), // 1: spacemesh.v2alpha1.ActivationV1 - (*VRFPostIndex)(nil), // 2: spacemesh.v2alpha1.VRFPostIndex - (*PoetProof)(nil), // 3: spacemesh.v2alpha1.PoetProof - (*PostMeta)(nil), // 4: spacemesh.v2alpha1.PostMeta - (*Post)(nil), // 5: spacemesh.v2alpha1.Post - (*ActivationStreamRequest)(nil), // 6: spacemesh.v2alpha1.ActivationStreamRequest - (*ActivationRequest)(nil), // 7: spacemesh.v2alpha1.ActivationRequest - (*ActivationList)(nil), // 8: spacemesh.v2alpha1.ActivationList + (*Activation)(nil), // 0: spacemesh.v2alpha1.Activation + (*ActivationV1)(nil), // 1: spacemesh.v2alpha1.ActivationV1 + (*VRFPostIndex)(nil), // 2: spacemesh.v2alpha1.VRFPostIndex + (*PoetProof)(nil), // 3: spacemesh.v2alpha1.PoetProof + (*PostMeta)(nil), // 4: spacemesh.v2alpha1.PostMeta + (*Post)(nil), // 5: spacemesh.v2alpha1.Post + (*ActivationStreamRequest)(nil), // 6: spacemesh.v2alpha1.ActivationStreamRequest + (*ActivationRequest)(nil), // 7: spacemesh.v2alpha1.ActivationRequest + (*ActivationList)(nil), // 8: spacemesh.v2alpha1.ActivationList + (*ActivationsCountRequest)(nil), // 9: spacemesh.v2alpha1.ActivationsCountRequest + (*ActivationsCountResponse)(nil), // 10: spacemesh.v2alpha1.ActivationsCountResponse } var file_spacemesh_v2alpha1_activation_proto_depIdxs = []int32{ - 1, // 0: spacemesh.v2alpha1.Activation.v1:type_name -> spacemesh.v2alpha1.ActivationV1 - 5, // 1: spacemesh.v2alpha1.ActivationV1.initial_post:type_name -> spacemesh.v2alpha1.Post - 3, // 2: spacemesh.v2alpha1.ActivationV1.poet_proof:type_name -> spacemesh.v2alpha1.PoetProof - 5, // 3: spacemesh.v2alpha1.ActivationV1.post:type_name -> spacemesh.v2alpha1.Post - 4, // 4: spacemesh.v2alpha1.ActivationV1.post_meta:type_name -> spacemesh.v2alpha1.PostMeta - 2, // 5: spacemesh.v2alpha1.ActivationV1.vrf_post_index:type_name -> spacemesh.v2alpha1.VRFPostIndex - 0, // 6: spacemesh.v2alpha1.ActivationList.activations:type_name -> spacemesh.v2alpha1.Activation - 6, // 7: spacemesh.v2alpha1.ActivationStreamService.Stream:input_type -> spacemesh.v2alpha1.ActivationStreamRequest - 7, // 8: spacemesh.v2alpha1.ActivationService.List:input_type -> spacemesh.v2alpha1.ActivationRequest - 0, // 9: spacemesh.v2alpha1.ActivationStreamService.Stream:output_type -> spacemesh.v2alpha1.Activation - 8, // 10: spacemesh.v2alpha1.ActivationService.List:output_type -> spacemesh.v2alpha1.ActivationList - 9, // [9:11] is the sub-list for method output_type - 7, // [7:9] is the sub-list for method input_type - 7, // [7:7] is the sub-list for extension type_name - 7, // [7:7] is the sub-list for extension extendee - 0, // [0:7] is the sub-list for field type_name + 1, // 0: spacemesh.v2alpha1.Activation.v1:type_name -> spacemesh.v2alpha1.ActivationV1 + 5, // 1: spacemesh.v2alpha1.ActivationV1.initial_post:type_name -> spacemesh.v2alpha1.Post + 3, // 2: spacemesh.v2alpha1.ActivationV1.poet_proof:type_name -> spacemesh.v2alpha1.PoetProof + 5, // 3: spacemesh.v2alpha1.ActivationV1.post:type_name -> spacemesh.v2alpha1.Post + 4, // 4: spacemesh.v2alpha1.ActivationV1.post_meta:type_name -> spacemesh.v2alpha1.PostMeta + 2, // 5: spacemesh.v2alpha1.ActivationV1.vrf_post_index:type_name -> spacemesh.v2alpha1.VRFPostIndex + 0, // 6: spacemesh.v2alpha1.ActivationList.activations:type_name -> spacemesh.v2alpha1.Activation + 6, // 7: spacemesh.v2alpha1.ActivationStreamService.Stream:input_type -> spacemesh.v2alpha1.ActivationStreamRequest + 7, // 8: spacemesh.v2alpha1.ActivationService.List:input_type -> spacemesh.v2alpha1.ActivationRequest + 9, // 9: spacemesh.v2alpha1.ActivationService.ActivationsCount:input_type -> spacemesh.v2alpha1.ActivationsCountRequest + 0, // 10: spacemesh.v2alpha1.ActivationStreamService.Stream:output_type -> spacemesh.v2alpha1.Activation + 8, // 11: spacemesh.v2alpha1.ActivationService.List:output_type -> spacemesh.v2alpha1.ActivationList + 10, // 12: spacemesh.v2alpha1.ActivationService.ActivationsCount:output_type -> spacemesh.v2alpha1.ActivationsCountResponse + 10, // [10:13] is the sub-list for method output_type + 7, // [7:10] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name } func init() { file_spacemesh_v2alpha1_activation_proto_init() } @@ -1000,6 +1111,30 @@ func file_spacemesh_v2alpha1_activation_proto_init() { return nil } } + file_spacemesh_v2alpha1_activation_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivationsCountRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v2alpha1_activation_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivationsCountResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } file_spacemesh_v2alpha1_activation_proto_msgTypes[0].OneofWrappers = []interface{}{ (*Activation_V1)(nil), @@ -1010,7 +1145,7 @@ func file_spacemesh_v2alpha1_activation_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_spacemesh_v2alpha1_activation_proto_rawDesc, NumEnums: 0, - NumMessages: 9, + NumMessages: 11, NumExtensions: 0, NumServices: 2, }, diff --git a/release/go/spacemesh/v2alpha1/activation.pb.gw.go b/release/go/spacemesh/v2alpha1/activation.pb.gw.go index 8cf05dae..b1b56179 100644 --- a/release/go/spacemesh/v2alpha1/activation.pb.gw.go +++ b/release/go/spacemesh/v2alpha1/activation.pb.gw.go @@ -90,6 +90,40 @@ func local_request_ActivationService_List_0(ctx context.Context, marshaler runti } +func request_ActivationService_ActivationsCount_0(ctx context.Context, marshaler runtime.Marshaler, client ActivationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ActivationsCountRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ActivationsCount(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_ActivationService_ActivationsCount_0(ctx context.Context, marshaler runtime.Marshaler, server ActivationServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ActivationsCountRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ActivationsCount(ctx, &protoReq) + return msg, metadata, err + +} + // RegisterActivationStreamServiceHandlerServer registers the http handlers for service ActivationStreamService to "mux". // UnaryRPC :call ActivationStreamServiceServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -137,6 +171,31 @@ func RegisterActivationServiceHandlerServer(ctx context.Context, mux *runtime.Se }) + mux.Handle("POST", pattern_ActivationService_ActivationsCount_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/spacemesh.v2alpha1.ActivationService/ActivationsCount", runtime.WithHTTPPathPattern("/spacemesh.v2alpha1.ActivationService/ActivationsCount")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_ActivationService_ActivationsCount_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ActivationService_ActivationsCount_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -271,13 +330,39 @@ func RegisterActivationServiceHandlerClient(ctx context.Context, mux *runtime.Se }) + mux.Handle("POST", pattern_ActivationService_ActivationsCount_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spacemesh.v2alpha1.ActivationService/ActivationsCount", runtime.WithHTTPPathPattern("/spacemesh.v2alpha1.ActivationService/ActivationsCount")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ActivationService_ActivationsCount_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ActivationService_ActivationsCount_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } var ( pattern_ActivationService_List_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"spacemesh.v2alpha1.ActivationService", "List"}, "")) + + pattern_ActivationService_ActivationsCount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"spacemesh.v2alpha1.ActivationService", "ActivationsCount"}, "")) ) var ( forward_ActivationService_List_0 = runtime.ForwardResponseMessage + + forward_ActivationService_ActivationsCount_0 = runtime.ForwardResponseMessage ) diff --git a/release/go/spacemesh/v2alpha1/activation_grpc.pb.go b/release/go/spacemesh/v2alpha1/activation_grpc.pb.go index f3467b43..c3db0bfc 100644 --- a/release/go/spacemesh/v2alpha1/activation_grpc.pb.go +++ b/release/go/spacemesh/v2alpha1/activation_grpc.pb.go @@ -134,7 +134,8 @@ var ActivationStreamService_ServiceDesc = grpc.ServiceDesc{ } const ( - ActivationService_List_FullMethodName = "/spacemesh.v2alpha1.ActivationService/List" + ActivationService_List_FullMethodName = "/spacemesh.v2alpha1.ActivationService/List" + ActivationService_ActivationsCount_FullMethodName = "/spacemesh.v2alpha1.ActivationService/ActivationsCount" ) // ActivationServiceClient is the client API for ActivationService service. @@ -142,6 +143,7 @@ const ( // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type ActivationServiceClient interface { List(ctx context.Context, in *ActivationRequest, opts ...grpc.CallOption) (*ActivationList, error) + ActivationsCount(ctx context.Context, in *ActivationsCountRequest, opts ...grpc.CallOption) (*ActivationsCountResponse, error) } type activationServiceClient struct { @@ -161,11 +163,21 @@ func (c *activationServiceClient) List(ctx context.Context, in *ActivationReques return out, nil } +func (c *activationServiceClient) ActivationsCount(ctx context.Context, in *ActivationsCountRequest, opts ...grpc.CallOption) (*ActivationsCountResponse, error) { + out := new(ActivationsCountResponse) + err := c.cc.Invoke(ctx, ActivationService_ActivationsCount_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // ActivationServiceServer is the server API for ActivationService service. // All implementations should embed UnimplementedActivationServiceServer // for forward compatibility type ActivationServiceServer interface { List(context.Context, *ActivationRequest) (*ActivationList, error) + ActivationsCount(context.Context, *ActivationsCountRequest) (*ActivationsCountResponse, error) } // UnimplementedActivationServiceServer should be embedded to have forward compatible implementations. @@ -175,6 +187,9 @@ type UnimplementedActivationServiceServer struct { func (UnimplementedActivationServiceServer) List(context.Context, *ActivationRequest) (*ActivationList, error) { return nil, status.Errorf(codes.Unimplemented, "method List not implemented") } +func (UnimplementedActivationServiceServer) ActivationsCount(context.Context, *ActivationsCountRequest) (*ActivationsCountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ActivationsCount not implemented") +} // UnsafeActivationServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ActivationServiceServer will @@ -205,6 +220,24 @@ func _ActivationService_List_Handler(srv interface{}, ctx context.Context, dec f return interceptor(ctx, in, info, handler) } +func _ActivationService_ActivationsCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ActivationsCountRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ActivationServiceServer).ActivationsCount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ActivationService_ActivationsCount_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ActivationServiceServer).ActivationsCount(ctx, req.(*ActivationsCountRequest)) + } + return interceptor(ctx, in, info, handler) +} + // ActivationService_ServiceDesc is the grpc.ServiceDesc for ActivationService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -216,6 +249,10 @@ var ActivationService_ServiceDesc = grpc.ServiceDesc{ MethodName: "List", Handler: _ActivationService_List_Handler, }, + { + MethodName: "ActivationsCount", + Handler: _ActivationService_ActivationsCount_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "spacemesh/v2alpha1/activation.proto", diff --git a/spacemesh/v2alpha1/activation.proto b/spacemesh/v2alpha1/activation.proto index ac8221db..1f5527be 100644 --- a/spacemesh/v2alpha1/activation.proto +++ b/spacemesh/v2alpha1/activation.proto @@ -79,6 +79,15 @@ message ActivationList { repeated Activation activations = 1; } +message ActivationsCountRequest { + uint32 epoch = 1; +} + +message ActivationsCountResponse { + uint32 count = 1; +} + service ActivationService { rpc List(ActivationRequest) returns (ActivationList); + rpc ActivationsCount(ActivationsCountRequest) returns (ActivationsCountResponse); } \ No newline at end of file