2023-10-11 13:23:02 +00:00
|
|
|
package iface
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"github.com/pkg/errors"
|
2024-02-15 05:46:47 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/v5/consensus-types/validator"
|
2023-10-11 13:23:02 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
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 {
|
2023-10-20 16:45:33 +00:00
|
|
|
GetValidatorCount(context.Context, string, []validator.Status) ([]ValidatorCount, error)
|
2023-10-11 13:23:02 +00:00
|
|
|
}
|