Versions in this module Expand all Collapse all v1 v1.11.10 Jul 13, 2024 Changes in this version + type Client struct + func NewClient(client pb.ValidatorStateClient) *Client + func (c *Client) GetCurrentHeight(ctx context.Context) (uint64, error) + func (c *Client) GetMinimumHeight(ctx context.Context) (uint64, error) + func (c *Client) GetSubnetID(ctx context.Context, chainID ids.ID) (ids.ID, error) + func (c *Client) GetValidatorSet(ctx context.Context, height uint64, subnetID ids.ID) (map[ids.NodeID]*validators.GetValidatorOutput, error) + type Server struct + func NewServer(state validators.State) *Server + func (s *Server) GetCurrentHeight(ctx context.Context, _ *emptypb.Empty) (*pb.GetCurrentHeightResponse, error) + func (s *Server) GetMinimumHeight(ctx context.Context, _ *emptypb.Empty) (*pb.GetMinimumHeightResponse, error) + func (s *Server) GetSubnetID(ctx context.Context, req *pb.GetSubnetIDRequest) (*pb.GetSubnetIDResponse, error) + func (s *Server) GetValidatorSet(ctx context.Context, req *pb.GetValidatorSetRequest) (*pb.GetValidatorSetResponse, error)