mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-24 20:37:17 +00:00
7c49277e83
* WIP * WIP * Remove duplicate mock * WIP * Revert "WIP" This reverts commit a8010057fef4209dfddde34ea868b88f1e196c44. * Fix build break * Remove unused variable * Fix build break * Rename validator_mock to validatormock * Fix failing test --------- Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com> Co-authored-by: Radosław Kapka <rkapka@wp.pl>
20 lines
820 B
Go
20 lines
820 B
Go
package iface
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/golang/protobuf/ptypes/empty"
|
|
ethpb "github.com/prysmaticlabs/prysm/v4/proto/prysm/v1alpha1"
|
|
)
|
|
|
|
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)
|
|
ListImplementedServices(ctx context.Context, in *empty.Empty) (*ethpb.ImplementedServices, error)
|
|
GetHost(ctx context.Context, in *empty.Empty) (*ethpb.HostData, error)
|
|
GetPeer(ctx context.Context, in *ethpb.PeerRequest) (*ethpb.Peer, error)
|
|
ListPeers(ctx context.Context, in *empty.Empty) (*ethpb.Peers, error)
|
|
GetETH1ConnectionStatus(ctx context.Context, in *empty.Empty) (*ethpb.ETH1ConnectionStatus, error)
|
|
}
|