mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 21:38:05 -05:00
21 lines
500 B
Go
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)
|
|
}
|