2023-03-20 16:32:32 +00:00
|
|
|
package iface
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"github.com/golang/protobuf/ptypes/empty"
|
2024-02-15 05:46:47 +00:00
|
|
|
ethpb "github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1"
|
2023-03-20 16:32:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type NodeClient interface {
|
|
|
|
GetSyncStatus(ctx context.Context, in *empty.Empty) (*ethpb.SyncStatus, error)
|
|
|
|
GetGenesis(ctx context.Context, in *empty.Empty) (*ethpb.Genesis, error)
|
|
|
|
GetVersion(ctx context.Context, in *empty.Empty) (*ethpb.Version, error)
|
|
|
|
ListPeers(ctx context.Context, in *empty.Empty) (*ethpb.Peers, error)
|
2024-01-18 14:27:41 +00:00
|
|
|
IsHealthy(ctx context.Context) bool
|
2023-03-20 16:32:32 +00:00
|
|
|
}
|