prysm-pulse/validator/client/iface/prysm_beacon_chain_client.go
Dhruv Bodani 2806326155
integrate validator count endpoint in validator client (#12912)
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-10-11 15:23:02 +02:00

21 lines
500 B
Go

package iface
import (
"context"
"github.com/pkg/errors"
"github.com/prysmaticlabs/prysm/v4/consensus-types/validator"
)
var ErrNotSupported = errors.New("endpoint not supported")
type ValidatorCount struct {
Status string
Count uint64
}
// PrysmBeaconChainClient defines an interface required to implement all the prysm specific custom endpoints.
type PrysmBeaconChainClient interface {
GetValidatorCount(context.Context, string, []validator.ValidatorStatus) ([]ValidatorCount, error)
}