code.vegaprotocol.io/vega@v0.79.0/protos/vega/api/v1/core_grpc.pb.go (about)

     1  // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
     2  // versions:
     3  // - protoc-gen-go-grpc v1.2.0
     4  // - protoc             (unknown)
     5  // source: vega/api/v1/core.proto
     6  
     7  package v1
     8  
     9  import (
    10  	context "context"
    11  	grpc "google.golang.org/grpc"
    12  	codes "google.golang.org/grpc/codes"
    13  	status "google.golang.org/grpc/status"
    14  )
    15  
    16  // This is a compile-time assertion to ensure that this generated file
    17  // is compatible with the grpc package it is being compiled against.
    18  // Requires gRPC-Go v1.32.0 or later.
    19  const _ = grpc.SupportPackageIsVersion7
    20  
    21  // CoreServiceClient is the client API for CoreService service.
    22  //
    23  // 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.
    24  type CoreServiceClient interface {
    25  	// Submit transaction
    26  	//
    27  	// Submit a signed transaction to the network containing a command to be executed such that if the submission is successful then it will be included in the chain's mempool.
    28  	// The network will then attempt to execute the transaction in the next available block, where the results of its execution can be seen on the EventBus.
    29  	SubmitTransaction(ctx context.Context, in *SubmitTransactionRequest, opts ...grpc.CallOption) (*SubmitTransactionResponse, error)
    30  	// Chain event
    31  	//
    32  	// Propagate a chain event
    33  	PropagateChainEvent(ctx context.Context, in *PropagateChainEventRequest, opts ...grpc.CallOption) (*PropagateChainEventResponse, error)
    34  	// Statistics
    35  	//
    36  	// Get statistics on Vega
    37  	Statistics(ctx context.Context, in *StatisticsRequest, opts ...grpc.CallOption) (*StatisticsResponse, error)
    38  	// Blockchain height
    39  	//
    40  	// Get the height of the last tendermint block
    41  	LastBlockHeight(ctx context.Context, in *LastBlockHeightRequest, opts ...grpc.CallOption) (*LastBlockHeightResponse, error)
    42  	// Vega time
    43  	//
    44  	// Get current Vega time
    45  	GetVegaTime(ctx context.Context, in *GetVegaTimeRequest, opts ...grpc.CallOption) (*GetVegaTimeResponse, error)
    46  	// Events subscription
    47  	//
    48  	// Subscribe to a stream of events from the core
    49  	ObserveEventBus(ctx context.Context, opts ...grpc.CallOption) (CoreService_ObserveEventBusClient, error)
    50  	// Submit raw transaction
    51  	//
    52  	// Submit a pre-serialised signed transaction containing a command to the network to be executed, such that if the submission is successful then it will be included in the chain's mempool.
    53  	// The network will then attempt to execute the transaction in the next available block, where the results of its execution can be seen on the EventBus.
    54  	SubmitRawTransaction(ctx context.Context, in *SubmitRawTransactionRequest, opts ...grpc.CallOption) (*SubmitRawTransactionResponse, error)
    55  	// Check transaction
    56  	//
    57  	// Send a signed transaction containing a command to the network to be checked, but not added to the chain's mempool.
    58  	// This is useful for checking the validity of a potential transaction before submitting it.
    59  	CheckTransaction(ctx context.Context, in *CheckTransactionRequest, opts ...grpc.CallOption) (*CheckTransactionResponse, error)
    60  	// Check raw transaction
    61  	//
    62  	// Send a pre-serialised transaction containing a command to the network to be checked, but then not added to the chain's mempool.
    63  	// This is useful for checking the validity of a potential transaction before submitting it.
    64  	CheckRawTransaction(ctx context.Context, in *CheckRawTransactionRequest, opts ...grpc.CallOption) (*CheckRawTransactionResponse, error)
    65  	// Get Spam statistics
    66  	//
    67  	// Get the spam statistics for a given party.
    68  	GetSpamStatistics(ctx context.Context, in *GetSpamStatisticsRequest, opts ...grpc.CallOption) (*GetSpamStatisticsResponse, error)
    69  }
    70  
    71  type coreServiceClient struct {
    72  	cc grpc.ClientConnInterface
    73  }
    74  
    75  func NewCoreServiceClient(cc grpc.ClientConnInterface) CoreServiceClient {
    76  	return &coreServiceClient{cc}
    77  }
    78  
    79  func (c *coreServiceClient) SubmitTransaction(ctx context.Context, in *SubmitTransactionRequest, opts ...grpc.CallOption) (*SubmitTransactionResponse, error) {
    80  	out := new(SubmitTransactionResponse)
    81  	err := c.cc.Invoke(ctx, "/vega.api.v1.CoreService/SubmitTransaction", in, out, opts...)
    82  	if err != nil {
    83  		return nil, err
    84  	}
    85  	return out, nil
    86  }
    87  
    88  func (c *coreServiceClient) PropagateChainEvent(ctx context.Context, in *PropagateChainEventRequest, opts ...grpc.CallOption) (*PropagateChainEventResponse, error) {
    89  	out := new(PropagateChainEventResponse)
    90  	err := c.cc.Invoke(ctx, "/vega.api.v1.CoreService/PropagateChainEvent", in, out, opts...)
    91  	if err != nil {
    92  		return nil, err
    93  	}
    94  	return out, nil
    95  }
    96  
    97  func (c *coreServiceClient) Statistics(ctx context.Context, in *StatisticsRequest, opts ...grpc.CallOption) (*StatisticsResponse, error) {
    98  	out := new(StatisticsResponse)
    99  	err := c.cc.Invoke(ctx, "/vega.api.v1.CoreService/Statistics", in, out, opts...)
   100  	if err != nil {
   101  		return nil, err
   102  	}
   103  	return out, nil
   104  }
   105  
   106  func (c *coreServiceClient) LastBlockHeight(ctx context.Context, in *LastBlockHeightRequest, opts ...grpc.CallOption) (*LastBlockHeightResponse, error) {
   107  	out := new(LastBlockHeightResponse)
   108  	err := c.cc.Invoke(ctx, "/vega.api.v1.CoreService/LastBlockHeight", in, out, opts...)
   109  	if err != nil {
   110  		return nil, err
   111  	}
   112  	return out, nil
   113  }
   114  
   115  func (c *coreServiceClient) GetVegaTime(ctx context.Context, in *GetVegaTimeRequest, opts ...grpc.CallOption) (*GetVegaTimeResponse, error) {
   116  	out := new(GetVegaTimeResponse)
   117  	err := c.cc.Invoke(ctx, "/vega.api.v1.CoreService/GetVegaTime", in, out, opts...)
   118  	if err != nil {
   119  		return nil, err
   120  	}
   121  	return out, nil
   122  }
   123  
   124  func (c *coreServiceClient) ObserveEventBus(ctx context.Context, opts ...grpc.CallOption) (CoreService_ObserveEventBusClient, error) {
   125  	stream, err := c.cc.NewStream(ctx, &CoreService_ServiceDesc.Streams[0], "/vega.api.v1.CoreService/ObserveEventBus", opts...)
   126  	if err != nil {
   127  		return nil, err
   128  	}
   129  	x := &coreServiceObserveEventBusClient{stream}
   130  	return x, nil
   131  }
   132  
   133  type CoreService_ObserveEventBusClient interface {
   134  	Send(*ObserveEventBusRequest) error
   135  	Recv() (*ObserveEventBusResponse, error)
   136  	grpc.ClientStream
   137  }
   138  
   139  type coreServiceObserveEventBusClient struct {
   140  	grpc.ClientStream
   141  }
   142  
   143  func (x *coreServiceObserveEventBusClient) Send(m *ObserveEventBusRequest) error {
   144  	return x.ClientStream.SendMsg(m)
   145  }
   146  
   147  func (x *coreServiceObserveEventBusClient) Recv() (*ObserveEventBusResponse, error) {
   148  	m := new(ObserveEventBusResponse)
   149  	if err := x.ClientStream.RecvMsg(m); err != nil {
   150  		return nil, err
   151  	}
   152  	return m, nil
   153  }
   154  
   155  func (c *coreServiceClient) SubmitRawTransaction(ctx context.Context, in *SubmitRawTransactionRequest, opts ...grpc.CallOption) (*SubmitRawTransactionResponse, error) {
   156  	out := new(SubmitRawTransactionResponse)
   157  	err := c.cc.Invoke(ctx, "/vega.api.v1.CoreService/SubmitRawTransaction", in, out, opts...)
   158  	if err != nil {
   159  		return nil, err
   160  	}
   161  	return out, nil
   162  }
   163  
   164  func (c *coreServiceClient) CheckTransaction(ctx context.Context, in *CheckTransactionRequest, opts ...grpc.CallOption) (*CheckTransactionResponse, error) {
   165  	out := new(CheckTransactionResponse)
   166  	err := c.cc.Invoke(ctx, "/vega.api.v1.CoreService/CheckTransaction", in, out, opts...)
   167  	if err != nil {
   168  		return nil, err
   169  	}
   170  	return out, nil
   171  }
   172  
   173  func (c *coreServiceClient) CheckRawTransaction(ctx context.Context, in *CheckRawTransactionRequest, opts ...grpc.CallOption) (*CheckRawTransactionResponse, error) {
   174  	out := new(CheckRawTransactionResponse)
   175  	err := c.cc.Invoke(ctx, "/vega.api.v1.CoreService/CheckRawTransaction", in, out, opts...)
   176  	if err != nil {
   177  		return nil, err
   178  	}
   179  	return out, nil
   180  }
   181  
   182  func (c *coreServiceClient) GetSpamStatistics(ctx context.Context, in *GetSpamStatisticsRequest, opts ...grpc.CallOption) (*GetSpamStatisticsResponse, error) {
   183  	out := new(GetSpamStatisticsResponse)
   184  	err := c.cc.Invoke(ctx, "/vega.api.v1.CoreService/GetSpamStatistics", in, out, opts...)
   185  	if err != nil {
   186  		return nil, err
   187  	}
   188  	return out, nil
   189  }
   190  
   191  // CoreServiceServer is the server API for CoreService service.
   192  // All implementations must embed UnimplementedCoreServiceServer
   193  // for forward compatibility
   194  type CoreServiceServer interface {
   195  	// Submit transaction
   196  	//
   197  	// Submit a signed transaction to the network containing a command to be executed such that if the submission is successful then it will be included in the chain's mempool.
   198  	// The network will then attempt to execute the transaction in the next available block, where the results of its execution can be seen on the EventBus.
   199  	SubmitTransaction(context.Context, *SubmitTransactionRequest) (*SubmitTransactionResponse, error)
   200  	// Chain event
   201  	//
   202  	// Propagate a chain event
   203  	PropagateChainEvent(context.Context, *PropagateChainEventRequest) (*PropagateChainEventResponse, error)
   204  	// Statistics
   205  	//
   206  	// Get statistics on Vega
   207  	Statistics(context.Context, *StatisticsRequest) (*StatisticsResponse, error)
   208  	// Blockchain height
   209  	//
   210  	// Get the height of the last tendermint block
   211  	LastBlockHeight(context.Context, *LastBlockHeightRequest) (*LastBlockHeightResponse, error)
   212  	// Vega time
   213  	//
   214  	// Get current Vega time
   215  	GetVegaTime(context.Context, *GetVegaTimeRequest) (*GetVegaTimeResponse, error)
   216  	// Events subscription
   217  	//
   218  	// Subscribe to a stream of events from the core
   219  	ObserveEventBus(CoreService_ObserveEventBusServer) error
   220  	// Submit raw transaction
   221  	//
   222  	// Submit a pre-serialised signed transaction containing a command to the network to be executed, such that if the submission is successful then it will be included in the chain's mempool.
   223  	// The network will then attempt to execute the transaction in the next available block, where the results of its execution can be seen on the EventBus.
   224  	SubmitRawTransaction(context.Context, *SubmitRawTransactionRequest) (*SubmitRawTransactionResponse, error)
   225  	// Check transaction
   226  	//
   227  	// Send a signed transaction containing a command to the network to be checked, but not added to the chain's mempool.
   228  	// This is useful for checking the validity of a potential transaction before submitting it.
   229  	CheckTransaction(context.Context, *CheckTransactionRequest) (*CheckTransactionResponse, error)
   230  	// Check raw transaction
   231  	//
   232  	// Send a pre-serialised transaction containing a command to the network to be checked, but then not added to the chain's mempool.
   233  	// This is useful for checking the validity of a potential transaction before submitting it.
   234  	CheckRawTransaction(context.Context, *CheckRawTransactionRequest) (*CheckRawTransactionResponse, error)
   235  	// Get Spam statistics
   236  	//
   237  	// Get the spam statistics for a given party.
   238  	GetSpamStatistics(context.Context, *GetSpamStatisticsRequest) (*GetSpamStatisticsResponse, error)
   239  	mustEmbedUnimplementedCoreServiceServer()
   240  }
   241  
   242  // UnimplementedCoreServiceServer must be embedded to have forward compatible implementations.
   243  type UnimplementedCoreServiceServer struct {
   244  }
   245  
   246  func (UnimplementedCoreServiceServer) SubmitTransaction(context.Context, *SubmitTransactionRequest) (*SubmitTransactionResponse, error) {
   247  	return nil, status.Errorf(codes.Unimplemented, "method SubmitTransaction not implemented")
   248  }
   249  func (UnimplementedCoreServiceServer) PropagateChainEvent(context.Context, *PropagateChainEventRequest) (*PropagateChainEventResponse, error) {
   250  	return nil, status.Errorf(codes.Unimplemented, "method PropagateChainEvent not implemented")
   251  }
   252  func (UnimplementedCoreServiceServer) Statistics(context.Context, *StatisticsRequest) (*StatisticsResponse, error) {
   253  	return nil, status.Errorf(codes.Unimplemented, "method Statistics not implemented")
   254  }
   255  func (UnimplementedCoreServiceServer) LastBlockHeight(context.Context, *LastBlockHeightRequest) (*LastBlockHeightResponse, error) {
   256  	return nil, status.Errorf(codes.Unimplemented, "method LastBlockHeight not implemented")
   257  }
   258  func (UnimplementedCoreServiceServer) GetVegaTime(context.Context, *GetVegaTimeRequest) (*GetVegaTimeResponse, error) {
   259  	return nil, status.Errorf(codes.Unimplemented, "method GetVegaTime not implemented")
   260  }
   261  func (UnimplementedCoreServiceServer) ObserveEventBus(CoreService_ObserveEventBusServer) error {
   262  	return status.Errorf(codes.Unimplemented, "method ObserveEventBus not implemented")
   263  }
   264  func (UnimplementedCoreServiceServer) SubmitRawTransaction(context.Context, *SubmitRawTransactionRequest) (*SubmitRawTransactionResponse, error) {
   265  	return nil, status.Errorf(codes.Unimplemented, "method SubmitRawTransaction not implemented")
   266  }
   267  func (UnimplementedCoreServiceServer) CheckTransaction(context.Context, *CheckTransactionRequest) (*CheckTransactionResponse, error) {
   268  	return nil, status.Errorf(codes.Unimplemented, "method CheckTransaction not implemented")
   269  }
   270  func (UnimplementedCoreServiceServer) CheckRawTransaction(context.Context, *CheckRawTransactionRequest) (*CheckRawTransactionResponse, error) {
   271  	return nil, status.Errorf(codes.Unimplemented, "method CheckRawTransaction not implemented")
   272  }
   273  func (UnimplementedCoreServiceServer) GetSpamStatistics(context.Context, *GetSpamStatisticsRequest) (*GetSpamStatisticsResponse, error) {
   274  	return nil, status.Errorf(codes.Unimplemented, "method GetSpamStatistics not implemented")
   275  }
   276  func (UnimplementedCoreServiceServer) mustEmbedUnimplementedCoreServiceServer() {}
   277  
   278  // UnsafeCoreServiceServer may be embedded to opt out of forward compatibility for this service.
   279  // Use of this interface is not recommended, as added methods to CoreServiceServer will
   280  // result in compilation errors.
   281  type UnsafeCoreServiceServer interface {
   282  	mustEmbedUnimplementedCoreServiceServer()
   283  }
   284  
   285  func RegisterCoreServiceServer(s grpc.ServiceRegistrar, srv CoreServiceServer) {
   286  	s.RegisterService(&CoreService_ServiceDesc, srv)
   287  }
   288  
   289  func _CoreService_SubmitTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   290  	in := new(SubmitTransactionRequest)
   291  	if err := dec(in); err != nil {
   292  		return nil, err
   293  	}
   294  	if interceptor == nil {
   295  		return srv.(CoreServiceServer).SubmitTransaction(ctx, in)
   296  	}
   297  	info := &grpc.UnaryServerInfo{
   298  		Server:     srv,
   299  		FullMethod: "/vega.api.v1.CoreService/SubmitTransaction",
   300  	}
   301  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   302  		return srv.(CoreServiceServer).SubmitTransaction(ctx, req.(*SubmitTransactionRequest))
   303  	}
   304  	return interceptor(ctx, in, info, handler)
   305  }
   306  
   307  func _CoreService_PropagateChainEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   308  	in := new(PropagateChainEventRequest)
   309  	if err := dec(in); err != nil {
   310  		return nil, err
   311  	}
   312  	if interceptor == nil {
   313  		return srv.(CoreServiceServer).PropagateChainEvent(ctx, in)
   314  	}
   315  	info := &grpc.UnaryServerInfo{
   316  		Server:     srv,
   317  		FullMethod: "/vega.api.v1.CoreService/PropagateChainEvent",
   318  	}
   319  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   320  		return srv.(CoreServiceServer).PropagateChainEvent(ctx, req.(*PropagateChainEventRequest))
   321  	}
   322  	return interceptor(ctx, in, info, handler)
   323  }
   324  
   325  func _CoreService_Statistics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   326  	in := new(StatisticsRequest)
   327  	if err := dec(in); err != nil {
   328  		return nil, err
   329  	}
   330  	if interceptor == nil {
   331  		return srv.(CoreServiceServer).Statistics(ctx, in)
   332  	}
   333  	info := &grpc.UnaryServerInfo{
   334  		Server:     srv,
   335  		FullMethod: "/vega.api.v1.CoreService/Statistics",
   336  	}
   337  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   338  		return srv.(CoreServiceServer).Statistics(ctx, req.(*StatisticsRequest))
   339  	}
   340  	return interceptor(ctx, in, info, handler)
   341  }
   342  
   343  func _CoreService_LastBlockHeight_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   344  	in := new(LastBlockHeightRequest)
   345  	if err := dec(in); err != nil {
   346  		return nil, err
   347  	}
   348  	if interceptor == nil {
   349  		return srv.(CoreServiceServer).LastBlockHeight(ctx, in)
   350  	}
   351  	info := &grpc.UnaryServerInfo{
   352  		Server:     srv,
   353  		FullMethod: "/vega.api.v1.CoreService/LastBlockHeight",
   354  	}
   355  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   356  		return srv.(CoreServiceServer).LastBlockHeight(ctx, req.(*LastBlockHeightRequest))
   357  	}
   358  	return interceptor(ctx, in, info, handler)
   359  }
   360  
   361  func _CoreService_GetVegaTime_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   362  	in := new(GetVegaTimeRequest)
   363  	if err := dec(in); err != nil {
   364  		return nil, err
   365  	}
   366  	if interceptor == nil {
   367  		return srv.(CoreServiceServer).GetVegaTime(ctx, in)
   368  	}
   369  	info := &grpc.UnaryServerInfo{
   370  		Server:     srv,
   371  		FullMethod: "/vega.api.v1.CoreService/GetVegaTime",
   372  	}
   373  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   374  		return srv.(CoreServiceServer).GetVegaTime(ctx, req.(*GetVegaTimeRequest))
   375  	}
   376  	return interceptor(ctx, in, info, handler)
   377  }
   378  
   379  func _CoreService_ObserveEventBus_Handler(srv interface{}, stream grpc.ServerStream) error {
   380  	return srv.(CoreServiceServer).ObserveEventBus(&coreServiceObserveEventBusServer{stream})
   381  }
   382  
   383  type CoreService_ObserveEventBusServer interface {
   384  	Send(*ObserveEventBusResponse) error
   385  	Recv() (*ObserveEventBusRequest, error)
   386  	grpc.ServerStream
   387  }
   388  
   389  type coreServiceObserveEventBusServer struct {
   390  	grpc.ServerStream
   391  }
   392  
   393  func (x *coreServiceObserveEventBusServer) Send(m *ObserveEventBusResponse) error {
   394  	return x.ServerStream.SendMsg(m)
   395  }
   396  
   397  func (x *coreServiceObserveEventBusServer) Recv() (*ObserveEventBusRequest, error) {
   398  	m := new(ObserveEventBusRequest)
   399  	if err := x.ServerStream.RecvMsg(m); err != nil {
   400  		return nil, err
   401  	}
   402  	return m, nil
   403  }
   404  
   405  func _CoreService_SubmitRawTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   406  	in := new(SubmitRawTransactionRequest)
   407  	if err := dec(in); err != nil {
   408  		return nil, err
   409  	}
   410  	if interceptor == nil {
   411  		return srv.(CoreServiceServer).SubmitRawTransaction(ctx, in)
   412  	}
   413  	info := &grpc.UnaryServerInfo{
   414  		Server:     srv,
   415  		FullMethod: "/vega.api.v1.CoreService/SubmitRawTransaction",
   416  	}
   417  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   418  		return srv.(CoreServiceServer).SubmitRawTransaction(ctx, req.(*SubmitRawTransactionRequest))
   419  	}
   420  	return interceptor(ctx, in, info, handler)
   421  }
   422  
   423  func _CoreService_CheckTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   424  	in := new(CheckTransactionRequest)
   425  	if err := dec(in); err != nil {
   426  		return nil, err
   427  	}
   428  	if interceptor == nil {
   429  		return srv.(CoreServiceServer).CheckTransaction(ctx, in)
   430  	}
   431  	info := &grpc.UnaryServerInfo{
   432  		Server:     srv,
   433  		FullMethod: "/vega.api.v1.CoreService/CheckTransaction",
   434  	}
   435  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   436  		return srv.(CoreServiceServer).CheckTransaction(ctx, req.(*CheckTransactionRequest))
   437  	}
   438  	return interceptor(ctx, in, info, handler)
   439  }
   440  
   441  func _CoreService_CheckRawTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   442  	in := new(CheckRawTransactionRequest)
   443  	if err := dec(in); err != nil {
   444  		return nil, err
   445  	}
   446  	if interceptor == nil {
   447  		return srv.(CoreServiceServer).CheckRawTransaction(ctx, in)
   448  	}
   449  	info := &grpc.UnaryServerInfo{
   450  		Server:     srv,
   451  		FullMethod: "/vega.api.v1.CoreService/CheckRawTransaction",
   452  	}
   453  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   454  		return srv.(CoreServiceServer).CheckRawTransaction(ctx, req.(*CheckRawTransactionRequest))
   455  	}
   456  	return interceptor(ctx, in, info, handler)
   457  }
   458  
   459  func _CoreService_GetSpamStatistics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   460  	in := new(GetSpamStatisticsRequest)
   461  	if err := dec(in); err != nil {
   462  		return nil, err
   463  	}
   464  	if interceptor == nil {
   465  		return srv.(CoreServiceServer).GetSpamStatistics(ctx, in)
   466  	}
   467  	info := &grpc.UnaryServerInfo{
   468  		Server:     srv,
   469  		FullMethod: "/vega.api.v1.CoreService/GetSpamStatistics",
   470  	}
   471  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   472  		return srv.(CoreServiceServer).GetSpamStatistics(ctx, req.(*GetSpamStatisticsRequest))
   473  	}
   474  	return interceptor(ctx, in, info, handler)
   475  }
   476  
   477  // CoreService_ServiceDesc is the grpc.ServiceDesc for CoreService service.
   478  // It's only intended for direct use with grpc.RegisterService,
   479  // and not to be introspected or modified (even as a copy)
   480  var CoreService_ServiceDesc = grpc.ServiceDesc{
   481  	ServiceName: "vega.api.v1.CoreService",
   482  	HandlerType: (*CoreServiceServer)(nil),
   483  	Methods: []grpc.MethodDesc{
   484  		{
   485  			MethodName: "SubmitTransaction",
   486  			Handler:    _CoreService_SubmitTransaction_Handler,
   487  		},
   488  		{
   489  			MethodName: "PropagateChainEvent",
   490  			Handler:    _CoreService_PropagateChainEvent_Handler,
   491  		},
   492  		{
   493  			MethodName: "Statistics",
   494  			Handler:    _CoreService_Statistics_Handler,
   495  		},
   496  		{
   497  			MethodName: "LastBlockHeight",
   498  			Handler:    _CoreService_LastBlockHeight_Handler,
   499  		},
   500  		{
   501  			MethodName: "GetVegaTime",
   502  			Handler:    _CoreService_GetVegaTime_Handler,
   503  		},
   504  		{
   505  			MethodName: "SubmitRawTransaction",
   506  			Handler:    _CoreService_SubmitRawTransaction_Handler,
   507  		},
   508  		{
   509  			MethodName: "CheckTransaction",
   510  			Handler:    _CoreService_CheckTransaction_Handler,
   511  		},
   512  		{
   513  			MethodName: "CheckRawTransaction",
   514  			Handler:    _CoreService_CheckRawTransaction_Handler,
   515  		},
   516  		{
   517  			MethodName: "GetSpamStatistics",
   518  			Handler:    _CoreService_GetSpamStatistics_Handler,
   519  		},
   520  	},
   521  	Streams: []grpc.StreamDesc{
   522  		{
   523  			StreamName:    "ObserveEventBus",
   524  			Handler:       _CoreService_ObserveEventBus_Handler,
   525  			ServerStreams: true,
   526  			ClientStreams: true,
   527  		},
   528  	},
   529  	Metadata: "vega/api/v1/core.proto",
   530  }