mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-08 18:51:19 +00:00
9387a36b66
* Fix exported names that start with a package name * A few more renames * Fix exported names that start with a package name * A few more renames * Radek's feedback * Fix conflict * fix keymanager test * Fix comments --------- Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
21 lines
491 B
Go
21 lines
491 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.Status) ([]ValidatorCount, error)
|
|
}
|