2021-07-01 15:35:06 +00:00
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
2022-04-07 04:29:32 +00:00
// versions:
// - protoc-gen-go-grpc v1.2.0
2022-07-26 02:28:10 +00:00
// - protoc v3.21.4
2022-04-07 04:29:32 +00:00
// source: remote/ethbackend.proto
2021-07-01 15:35:06 +00:00
package remote
import (
context "context"
2021-07-01 15:44:00 +00:00
types "github.com/ledgerwatch/erigon-lib/gointerfaces/types"
2021-07-01 15:35:06 +00:00
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
emptypb "google.golang.org/protobuf/types/known/emptypb"
)
// 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
// ETHBACKENDClient is the client API for ETHBACKEND 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 ETHBACKENDClient interface {
Etherbase ( ctx context . Context , in * EtherbaseRequest , opts ... grpc . CallOption ) ( * EtherbaseReply , error )
NetVersion ( ctx context . Context , in * NetVersionRequest , opts ... grpc . CallOption ) ( * NetVersionReply , error )
NetPeerCount ( ctx context . Context , in * NetPeerCountRequest , opts ... grpc . CallOption ) ( * NetPeerCountReply , error )
2022-02-09 06:49:31 +00:00
// Fetch Execution Payload using its ID.
2021-11-14 04:08:45 +00:00
EngineGetPayloadV1 ( ctx context . Context , in * EngineGetPayloadRequest , opts ... grpc . CallOption ) ( * types . ExecutionPayload , error )
2022-02-09 06:49:31 +00:00
// Validate and possibly execute the payload.
EngineNewPayloadV1 ( ctx context . Context , in * types . ExecutionPayload , opts ... grpc . CallOption ) ( * EnginePayloadStatus , error )
2021-11-14 04:08:45 +00:00
// Update fork choice
EngineForkChoiceUpdatedV1 ( ctx context . Context , in * EngineForkChoiceUpdatedRequest , opts ... grpc . CallOption ) ( * EngineForkChoiceUpdatedReply , error )
2021-07-01 15:35:06 +00:00
// Version returns the service version number
Version ( ctx context . Context , in * emptypb . Empty , opts ... grpc . CallOption ) ( * types . VersionReply , error )
2022-06-28 11:39:45 +00:00
// ProtocolVersion returns the Ethereum protocol version number (e.g. 66 for ETH66).
2021-07-01 15:35:06 +00:00
ProtocolVersion ( ctx context . Context , in * ProtocolVersionRequest , opts ... grpc . CallOption ) ( * ProtocolVersionReply , error )
// ClientVersion returns the Ethereum client version string using node name convention (e.g. TurboGeth/v2021.03.2-alpha/Linux).
ClientVersion ( ctx context . Context , in * ClientVersionRequest , opts ... grpc . CallOption ) ( * ClientVersionReply , error )
Subscribe ( ctx context . Context , in * SubscribeRequest , opts ... grpc . CallOption ) ( ETHBACKEND_SubscribeClient , error )
2022-03-11 16:33:47 +00:00
// Only one subscription is needed to serve all the users, LogsFilterRequest allows to dynamically modifying the subscription
SubscribeLogs ( ctx context . Context , opts ... grpc . CallOption ) ( ETHBACKEND_SubscribeLogsClient , error )
2021-11-14 04:08:45 +00:00
// High-level method - can read block from db, snapshots or apply any other logic
// it doesn't provide consistency
2022-01-07 10:14:21 +00:00
// Request fields are optional - it's ok to request block only by hash or only by number
2021-11-14 04:08:45 +00:00
Block ( ctx context . Context , in * BlockRequest , opts ... grpc . CallOption ) ( * BlockReply , error )
2022-01-07 10:14:21 +00:00
// High-level method - can find block number by txn hash
// it doesn't provide consistency
TxnLookup ( ctx context . Context , in * TxnLookupRequest , opts ... grpc . CallOption ) ( * TxnLookupReply , error )
2022-04-25 12:54:05 +00:00
// NodeInfo collects and returns NodeInfo from all running sentry instances.
2021-11-30 14:41:31 +00:00
NodeInfo ( ctx context . Context , in * NodesInfoRequest , opts ... grpc . CallOption ) ( * NodesInfoReply , error )
2022-04-25 12:54:05 +00:00
// Peers collects and returns peers information from all running sentry instances.
Peers ( ctx context . Context , in * emptypb . Empty , opts ... grpc . CallOption ) ( * PeersReply , error )
2022-08-10 11:58:13 +00:00
PendingBlock ( ctx context . Context , in * emptypb . Empty , opts ... grpc . CallOption ) ( * PendingBlockReply , error )
2021-07-01 15:35:06 +00:00
}
type eTHBACKENDClient struct {
cc grpc . ClientConnInterface
}
func NewETHBACKENDClient ( cc grpc . ClientConnInterface ) ETHBACKENDClient {
return & eTHBACKENDClient { cc }
}
func ( c * eTHBACKENDClient ) Etherbase ( ctx context . Context , in * EtherbaseRequest , opts ... grpc . CallOption ) ( * EtherbaseReply , error ) {
out := new ( EtherbaseReply )
err := c . cc . Invoke ( ctx , "/remote.ETHBACKEND/Etherbase" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * eTHBACKENDClient ) NetVersion ( ctx context . Context , in * NetVersionRequest , opts ... grpc . CallOption ) ( * NetVersionReply , error ) {
out := new ( NetVersionReply )
err := c . cc . Invoke ( ctx , "/remote.ETHBACKEND/NetVersion" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * eTHBACKENDClient ) NetPeerCount ( ctx context . Context , in * NetPeerCountRequest , opts ... grpc . CallOption ) ( * NetPeerCountReply , error ) {
out := new ( NetPeerCountReply )
err := c . cc . Invoke ( ctx , "/remote.ETHBACKEND/NetPeerCount" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2021-11-14 04:08:45 +00:00
func ( c * eTHBACKENDClient ) EngineGetPayloadV1 ( ctx context . Context , in * EngineGetPayloadRequest , opts ... grpc . CallOption ) ( * types . ExecutionPayload , error ) {
out := new ( types . ExecutionPayload )
err := c . cc . Invoke ( ctx , "/remote.ETHBACKEND/EngineGetPayloadV1" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2022-02-09 06:49:31 +00:00
func ( c * eTHBACKENDClient ) EngineNewPayloadV1 ( ctx context . Context , in * types . ExecutionPayload , opts ... grpc . CallOption ) ( * EnginePayloadStatus , error ) {
out := new ( EnginePayloadStatus )
err := c . cc . Invoke ( ctx , "/remote.ETHBACKEND/EngineNewPayloadV1" , in , out , opts ... )
2021-11-14 04:08:45 +00:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * eTHBACKENDClient ) EngineForkChoiceUpdatedV1 ( ctx context . Context , in * EngineForkChoiceUpdatedRequest , opts ... grpc . CallOption ) ( * EngineForkChoiceUpdatedReply , error ) {
out := new ( EngineForkChoiceUpdatedReply )
err := c . cc . Invoke ( ctx , "/remote.ETHBACKEND/EngineForkChoiceUpdatedV1" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2021-07-01 15:35:06 +00:00
func ( c * eTHBACKENDClient ) Version ( ctx context . Context , in * emptypb . Empty , opts ... grpc . CallOption ) ( * types . VersionReply , error ) {
out := new ( types . VersionReply )
err := c . cc . Invoke ( ctx , "/remote.ETHBACKEND/Version" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * eTHBACKENDClient ) ProtocolVersion ( ctx context . Context , in * ProtocolVersionRequest , opts ... grpc . CallOption ) ( * ProtocolVersionReply , error ) {
out := new ( ProtocolVersionReply )
err := c . cc . Invoke ( ctx , "/remote.ETHBACKEND/ProtocolVersion" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * eTHBACKENDClient ) ClientVersion ( ctx context . Context , in * ClientVersionRequest , opts ... grpc . CallOption ) ( * ClientVersionReply , error ) {
out := new ( ClientVersionReply )
err := c . cc . Invoke ( ctx , "/remote.ETHBACKEND/ClientVersion" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * eTHBACKENDClient ) Subscribe ( ctx context . Context , in * SubscribeRequest , opts ... grpc . CallOption ) ( ETHBACKEND_SubscribeClient , error ) {
stream , err := c . cc . NewStream ( ctx , & ETHBACKEND_ServiceDesc . Streams [ 0 ] , "/remote.ETHBACKEND/Subscribe" , opts ... )
if err != nil {
return nil , err
}
x := & eTHBACKENDSubscribeClient { 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 ETHBACKEND_SubscribeClient interface {
Recv ( ) ( * SubscribeReply , error )
grpc . ClientStream
}
type eTHBACKENDSubscribeClient struct {
grpc . ClientStream
}
func ( x * eTHBACKENDSubscribeClient ) Recv ( ) ( * SubscribeReply , error ) {
m := new ( SubscribeReply )
if err := x . ClientStream . RecvMsg ( m ) ; err != nil {
return nil , err
}
return m , nil
}
2022-03-11 16:33:47 +00:00
func ( c * eTHBACKENDClient ) SubscribeLogs ( ctx context . Context , opts ... grpc . CallOption ) ( ETHBACKEND_SubscribeLogsClient , error ) {
stream , err := c . cc . NewStream ( ctx , & ETHBACKEND_ServiceDesc . Streams [ 1 ] , "/remote.ETHBACKEND/SubscribeLogs" , opts ... )
if err != nil {
return nil , err
}
x := & eTHBACKENDSubscribeLogsClient { stream }
return x , nil
}
type ETHBACKEND_SubscribeLogsClient interface {
Send ( * LogsFilterRequest ) error
Recv ( ) ( * SubscribeLogsReply , error )
grpc . ClientStream
}
type eTHBACKENDSubscribeLogsClient struct {
grpc . ClientStream
}
func ( x * eTHBACKENDSubscribeLogsClient ) Send ( m * LogsFilterRequest ) error {
return x . ClientStream . SendMsg ( m )
}
func ( x * eTHBACKENDSubscribeLogsClient ) Recv ( ) ( * SubscribeLogsReply , error ) {
m := new ( SubscribeLogsReply )
if err := x . ClientStream . RecvMsg ( m ) ; err != nil {
return nil , err
}
return m , nil
}
2021-11-14 04:08:45 +00:00
func ( c * eTHBACKENDClient ) Block ( ctx context . Context , in * BlockRequest , opts ... grpc . CallOption ) ( * BlockReply , error ) {
out := new ( BlockReply )
err := c . cc . Invoke ( ctx , "/remote.ETHBACKEND/Block" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2022-01-07 10:14:21 +00:00
func ( c * eTHBACKENDClient ) TxnLookup ( ctx context . Context , in * TxnLookupRequest , opts ... grpc . CallOption ) ( * TxnLookupReply , error ) {
out := new ( TxnLookupReply )
err := c . cc . Invoke ( ctx , "/remote.ETHBACKEND/TxnLookup" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2021-11-30 14:41:31 +00:00
func ( c * eTHBACKENDClient ) NodeInfo ( ctx context . Context , in * NodesInfoRequest , opts ... grpc . CallOption ) ( * NodesInfoReply , error ) {
out := new ( NodesInfoReply )
err := c . cc . Invoke ( ctx , "/remote.ETHBACKEND/NodeInfo" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2022-04-25 12:54:05 +00:00
func ( c * eTHBACKENDClient ) Peers ( ctx context . Context , in * emptypb . Empty , opts ... grpc . CallOption ) ( * PeersReply , error ) {
out := new ( PeersReply )
err := c . cc . Invoke ( ctx , "/remote.ETHBACKEND/Peers" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2022-08-10 11:58:13 +00:00
func ( c * eTHBACKENDClient ) PendingBlock ( ctx context . Context , in * emptypb . Empty , opts ... grpc . CallOption ) ( * PendingBlockReply , error ) {
out := new ( PendingBlockReply )
err := c . cc . Invoke ( ctx , "/remote.ETHBACKEND/PendingBlock" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2021-07-01 15:35:06 +00:00
// ETHBACKENDServer is the server API for ETHBACKEND service.
// All implementations must embed UnimplementedETHBACKENDServer
// for forward compatibility
type ETHBACKENDServer interface {
Etherbase ( context . Context , * EtherbaseRequest ) ( * EtherbaseReply , error )
NetVersion ( context . Context , * NetVersionRequest ) ( * NetVersionReply , error )
NetPeerCount ( context . Context , * NetPeerCountRequest ) ( * NetPeerCountReply , error )
2022-02-09 06:49:31 +00:00
// Fetch Execution Payload using its ID.
2021-11-14 04:08:45 +00:00
EngineGetPayloadV1 ( context . Context , * EngineGetPayloadRequest ) ( * types . ExecutionPayload , error )
2022-02-09 06:49:31 +00:00
// Validate and possibly execute the payload.
EngineNewPayloadV1 ( context . Context , * types . ExecutionPayload ) ( * EnginePayloadStatus , error )
2021-11-14 04:08:45 +00:00
// Update fork choice
EngineForkChoiceUpdatedV1 ( context . Context , * EngineForkChoiceUpdatedRequest ) ( * EngineForkChoiceUpdatedReply , error )
2021-07-01 15:35:06 +00:00
// Version returns the service version number
Version ( context . Context , * emptypb . Empty ) ( * types . VersionReply , error )
2022-06-28 11:39:45 +00:00
// ProtocolVersion returns the Ethereum protocol version number (e.g. 66 for ETH66).
2021-07-01 15:35:06 +00:00
ProtocolVersion ( context . Context , * ProtocolVersionRequest ) ( * ProtocolVersionReply , error )
// ClientVersion returns the Ethereum client version string using node name convention (e.g. TurboGeth/v2021.03.2-alpha/Linux).
ClientVersion ( context . Context , * ClientVersionRequest ) ( * ClientVersionReply , error )
Subscribe ( * SubscribeRequest , ETHBACKEND_SubscribeServer ) error
2022-03-11 16:33:47 +00:00
// Only one subscription is needed to serve all the users, LogsFilterRequest allows to dynamically modifying the subscription
SubscribeLogs ( ETHBACKEND_SubscribeLogsServer ) error
2021-11-14 04:08:45 +00:00
// High-level method - can read block from db, snapshots or apply any other logic
// it doesn't provide consistency
2022-01-07 10:14:21 +00:00
// Request fields are optional - it's ok to request block only by hash or only by number
2021-11-14 04:08:45 +00:00
Block ( context . Context , * BlockRequest ) ( * BlockReply , error )
2022-01-07 10:14:21 +00:00
// High-level method - can find block number by txn hash
// it doesn't provide consistency
TxnLookup ( context . Context , * TxnLookupRequest ) ( * TxnLookupReply , error )
2022-04-25 12:54:05 +00:00
// NodeInfo collects and returns NodeInfo from all running sentry instances.
2021-11-30 14:41:31 +00:00
NodeInfo ( context . Context , * NodesInfoRequest ) ( * NodesInfoReply , error )
2022-04-25 12:54:05 +00:00
// Peers collects and returns peers information from all running sentry instances.
Peers ( context . Context , * emptypb . Empty ) ( * PeersReply , error )
2022-08-10 11:58:13 +00:00
PendingBlock ( context . Context , * emptypb . Empty ) ( * PendingBlockReply , error )
2021-07-01 15:35:06 +00:00
mustEmbedUnimplementedETHBACKENDServer ( )
}
// UnimplementedETHBACKENDServer must be embedded to have forward compatible implementations.
type UnimplementedETHBACKENDServer struct {
}
func ( UnimplementedETHBACKENDServer ) Etherbase ( context . Context , * EtherbaseRequest ) ( * EtherbaseReply , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Etherbase not implemented" )
}
func ( UnimplementedETHBACKENDServer ) NetVersion ( context . Context , * NetVersionRequest ) ( * NetVersionReply , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method NetVersion not implemented" )
}
func ( UnimplementedETHBACKENDServer ) NetPeerCount ( context . Context , * NetPeerCountRequest ) ( * NetPeerCountReply , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method NetPeerCount not implemented" )
}
2021-11-14 04:08:45 +00:00
func ( UnimplementedETHBACKENDServer ) EngineGetPayloadV1 ( context . Context , * EngineGetPayloadRequest ) ( * types . ExecutionPayload , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method EngineGetPayloadV1 not implemented" )
}
2022-02-09 06:49:31 +00:00
func ( UnimplementedETHBACKENDServer ) EngineNewPayloadV1 ( context . Context , * types . ExecutionPayload ) ( * EnginePayloadStatus , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method EngineNewPayloadV1 not implemented" )
2021-11-14 04:08:45 +00:00
}
func ( UnimplementedETHBACKENDServer ) EngineForkChoiceUpdatedV1 ( context . Context , * EngineForkChoiceUpdatedRequest ) ( * EngineForkChoiceUpdatedReply , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method EngineForkChoiceUpdatedV1 not implemented" )
}
2021-07-01 15:35:06 +00:00
func ( UnimplementedETHBACKENDServer ) Version ( context . Context , * emptypb . Empty ) ( * types . VersionReply , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Version not implemented" )
}
func ( UnimplementedETHBACKENDServer ) ProtocolVersion ( context . Context , * ProtocolVersionRequest ) ( * ProtocolVersionReply , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ProtocolVersion not implemented" )
}
func ( UnimplementedETHBACKENDServer ) ClientVersion ( context . Context , * ClientVersionRequest ) ( * ClientVersionReply , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ClientVersion not implemented" )
}
func ( UnimplementedETHBACKENDServer ) Subscribe ( * SubscribeRequest , ETHBACKEND_SubscribeServer ) error {
return status . Errorf ( codes . Unimplemented , "method Subscribe not implemented" )
}
2022-03-11 16:33:47 +00:00
func ( UnimplementedETHBACKENDServer ) SubscribeLogs ( ETHBACKEND_SubscribeLogsServer ) error {
return status . Errorf ( codes . Unimplemented , "method SubscribeLogs not implemented" )
}
2021-11-14 04:08:45 +00:00
func ( UnimplementedETHBACKENDServer ) Block ( context . Context , * BlockRequest ) ( * BlockReply , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Block not implemented" )
}
2022-01-07 10:14:21 +00:00
func ( UnimplementedETHBACKENDServer ) TxnLookup ( context . Context , * TxnLookupRequest ) ( * TxnLookupReply , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method TxnLookup not implemented" )
}
2021-11-30 14:41:31 +00:00
func ( UnimplementedETHBACKENDServer ) NodeInfo ( context . Context , * NodesInfoRequest ) ( * NodesInfoReply , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method NodeInfo not implemented" )
}
2022-04-25 12:54:05 +00:00
func ( UnimplementedETHBACKENDServer ) Peers ( context . Context , * emptypb . Empty ) ( * PeersReply , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Peers not implemented" )
}
2022-08-10 11:58:13 +00:00
func ( UnimplementedETHBACKENDServer ) PendingBlock ( context . Context , * emptypb . Empty ) ( * PendingBlockReply , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method PendingBlock not implemented" )
}
2021-07-01 15:35:06 +00:00
func ( UnimplementedETHBACKENDServer ) mustEmbedUnimplementedETHBACKENDServer ( ) { }
// UnsafeETHBACKENDServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to ETHBACKENDServer will
// result in compilation errors.
type UnsafeETHBACKENDServer interface {
mustEmbedUnimplementedETHBACKENDServer ( )
}
func RegisterETHBACKENDServer ( s grpc . ServiceRegistrar , srv ETHBACKENDServer ) {
s . RegisterService ( & ETHBACKEND_ServiceDesc , srv )
}
func _ETHBACKEND_Etherbase_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( EtherbaseRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( ETHBACKENDServer ) . Etherbase ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/remote.ETHBACKEND/Etherbase" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( ETHBACKENDServer ) . Etherbase ( ctx , req . ( * EtherbaseRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _ETHBACKEND_NetVersion_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( NetVersionRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( ETHBACKENDServer ) . NetVersion ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/remote.ETHBACKEND/NetVersion" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( ETHBACKENDServer ) . NetVersion ( ctx , req . ( * NetVersionRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _ETHBACKEND_NetPeerCount_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( NetPeerCountRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( ETHBACKENDServer ) . NetPeerCount ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/remote.ETHBACKEND/NetPeerCount" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( ETHBACKENDServer ) . NetPeerCount ( ctx , req . ( * NetPeerCountRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2021-11-14 04:08:45 +00:00
func _ETHBACKEND_EngineGetPayloadV1_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( EngineGetPayloadRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( ETHBACKENDServer ) . EngineGetPayloadV1 ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/remote.ETHBACKEND/EngineGetPayloadV1" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( ETHBACKENDServer ) . EngineGetPayloadV1 ( ctx , req . ( * EngineGetPayloadRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2022-02-09 06:49:31 +00:00
func _ETHBACKEND_EngineNewPayloadV1_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2021-11-14 04:08:45 +00:00
in := new ( types . ExecutionPayload )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2022-02-09 06:49:31 +00:00
return srv . ( ETHBACKENDServer ) . EngineNewPayloadV1 ( ctx , in )
2021-11-14 04:08:45 +00:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2022-02-09 06:49:31 +00:00
FullMethod : "/remote.ETHBACKEND/EngineNewPayloadV1" ,
2021-11-14 04:08:45 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2022-02-09 06:49:31 +00:00
return srv . ( ETHBACKENDServer ) . EngineNewPayloadV1 ( ctx , req . ( * types . ExecutionPayload ) )
2021-11-14 04:08:45 +00:00
}
return interceptor ( ctx , in , info , handler )
}
func _ETHBACKEND_EngineForkChoiceUpdatedV1_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( EngineForkChoiceUpdatedRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( ETHBACKENDServer ) . EngineForkChoiceUpdatedV1 ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/remote.ETHBACKEND/EngineForkChoiceUpdatedV1" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( ETHBACKENDServer ) . EngineForkChoiceUpdatedV1 ( ctx , req . ( * EngineForkChoiceUpdatedRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2021-07-01 15:35:06 +00:00
func _ETHBACKEND_Version_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 . ( ETHBACKENDServer ) . Version ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/remote.ETHBACKEND/Version" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( ETHBACKENDServer ) . Version ( ctx , req . ( * emptypb . Empty ) )
}
return interceptor ( ctx , in , info , handler )
}
func _ETHBACKEND_ProtocolVersion_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ProtocolVersionRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( ETHBACKENDServer ) . ProtocolVersion ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/remote.ETHBACKEND/ProtocolVersion" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( ETHBACKENDServer ) . ProtocolVersion ( ctx , req . ( * ProtocolVersionRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _ETHBACKEND_ClientVersion_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ClientVersionRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( ETHBACKENDServer ) . ClientVersion ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/remote.ETHBACKEND/ClientVersion" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( ETHBACKENDServer ) . ClientVersion ( ctx , req . ( * ClientVersionRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _ETHBACKEND_Subscribe_Handler ( srv interface { } , stream grpc . ServerStream ) error {
m := new ( SubscribeRequest )
if err := stream . RecvMsg ( m ) ; err != nil {
return err
}
return srv . ( ETHBACKENDServer ) . Subscribe ( m , & eTHBACKENDSubscribeServer { stream } )
}
type ETHBACKEND_SubscribeServer interface {
Send ( * SubscribeReply ) error
grpc . ServerStream
}
type eTHBACKENDSubscribeServer struct {
grpc . ServerStream
}
func ( x * eTHBACKENDSubscribeServer ) Send ( m * SubscribeReply ) error {
return x . ServerStream . SendMsg ( m )
}
2022-03-11 16:33:47 +00:00
func _ETHBACKEND_SubscribeLogs_Handler ( srv interface { } , stream grpc . ServerStream ) error {
return srv . ( ETHBACKENDServer ) . SubscribeLogs ( & eTHBACKENDSubscribeLogsServer { stream } )
}
type ETHBACKEND_SubscribeLogsServer interface {
Send ( * SubscribeLogsReply ) error
Recv ( ) ( * LogsFilterRequest , error )
grpc . ServerStream
}
type eTHBACKENDSubscribeLogsServer struct {
grpc . ServerStream
}
func ( x * eTHBACKENDSubscribeLogsServer ) Send ( m * SubscribeLogsReply ) error {
return x . ServerStream . SendMsg ( m )
}
func ( x * eTHBACKENDSubscribeLogsServer ) Recv ( ) ( * LogsFilterRequest , error ) {
m := new ( LogsFilterRequest )
if err := x . ServerStream . RecvMsg ( m ) ; err != nil {
return nil , err
}
return m , nil
}
2021-11-14 04:08:45 +00:00
func _ETHBACKEND_Block_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( BlockRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( ETHBACKENDServer ) . Block ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/remote.ETHBACKEND/Block" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( ETHBACKENDServer ) . Block ( ctx , req . ( * BlockRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2022-01-07 10:14:21 +00:00
func _ETHBACKEND_TxnLookup_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( TxnLookupRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( ETHBACKENDServer ) . TxnLookup ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/remote.ETHBACKEND/TxnLookup" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( ETHBACKENDServer ) . TxnLookup ( ctx , req . ( * TxnLookupRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2021-11-30 14:41:31 +00:00
func _ETHBACKEND_NodeInfo_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( NodesInfoRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( ETHBACKENDServer ) . NodeInfo ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/remote.ETHBACKEND/NodeInfo" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( ETHBACKENDServer ) . NodeInfo ( ctx , req . ( * NodesInfoRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2022-04-25 12:54:05 +00:00
func _ETHBACKEND_Peers_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 . ( ETHBACKENDServer ) . Peers ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/remote.ETHBACKEND/Peers" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( ETHBACKENDServer ) . Peers ( ctx , req . ( * emptypb . Empty ) )
}
return interceptor ( ctx , in , info , handler )
}
2022-08-10 11:58:13 +00:00
func _ETHBACKEND_PendingBlock_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 . ( ETHBACKENDServer ) . PendingBlock ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/remote.ETHBACKEND/PendingBlock" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( ETHBACKENDServer ) . PendingBlock ( ctx , req . ( * emptypb . Empty ) )
}
return interceptor ( ctx , in , info , handler )
}
2021-07-01 15:35:06 +00:00
// ETHBACKEND_ServiceDesc is the grpc.ServiceDesc for ETHBACKEND service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var ETHBACKEND_ServiceDesc = grpc . ServiceDesc {
ServiceName : "remote.ETHBACKEND" ,
HandlerType : ( * ETHBACKENDServer ) ( nil ) ,
Methods : [ ] grpc . MethodDesc {
{
MethodName : "Etherbase" ,
Handler : _ETHBACKEND_Etherbase_Handler ,
} ,
{
MethodName : "NetVersion" ,
Handler : _ETHBACKEND_NetVersion_Handler ,
} ,
{
MethodName : "NetPeerCount" ,
Handler : _ETHBACKEND_NetPeerCount_Handler ,
} ,
2021-11-14 04:08:45 +00:00
{
MethodName : "EngineGetPayloadV1" ,
Handler : _ETHBACKEND_EngineGetPayloadV1_Handler ,
} ,
{
2022-02-09 06:49:31 +00:00
MethodName : "EngineNewPayloadV1" ,
Handler : _ETHBACKEND_EngineNewPayloadV1_Handler ,
2021-11-14 04:08:45 +00:00
} ,
{
MethodName : "EngineForkChoiceUpdatedV1" ,
Handler : _ETHBACKEND_EngineForkChoiceUpdatedV1_Handler ,
} ,
2021-07-01 15:35:06 +00:00
{
MethodName : "Version" ,
Handler : _ETHBACKEND_Version_Handler ,
} ,
{
MethodName : "ProtocolVersion" ,
Handler : _ETHBACKEND_ProtocolVersion_Handler ,
} ,
{
MethodName : "ClientVersion" ,
Handler : _ETHBACKEND_ClientVersion_Handler ,
} ,
2021-11-14 04:08:45 +00:00
{
MethodName : "Block" ,
Handler : _ETHBACKEND_Block_Handler ,
} ,
2022-01-07 10:14:21 +00:00
{
MethodName : "TxnLookup" ,
Handler : _ETHBACKEND_TxnLookup_Handler ,
} ,
2021-11-30 14:41:31 +00:00
{
MethodName : "NodeInfo" ,
Handler : _ETHBACKEND_NodeInfo_Handler ,
} ,
2022-04-25 12:54:05 +00:00
{
MethodName : "Peers" ,
Handler : _ETHBACKEND_Peers_Handler ,
} ,
2022-08-10 11:58:13 +00:00
{
MethodName : "PendingBlock" ,
Handler : _ETHBACKEND_PendingBlock_Handler ,
} ,
2021-07-01 15:35:06 +00:00
} ,
Streams : [ ] grpc . StreamDesc {
{
StreamName : "Subscribe" ,
Handler : _ETHBACKEND_Subscribe_Handler ,
ServerStreams : true ,
} ,
2022-03-11 16:33:47 +00:00
{
StreamName : "SubscribeLogs" ,
Handler : _ETHBACKEND_SubscribeLogs_Handler ,
ServerStreams : true ,
ClientStreams : true ,
} ,
2021-07-01 15:35:06 +00:00
} ,
Metadata : "remote/ethbackend.proto" ,
}