mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-03 08:37:37 +00:00
5a66807989
* First take at updating everything to v5 * Patch gRPC gateway to use prysm v5 Fix patch * Update go ssz --------- Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
21 lines
491 B
Go
21 lines
491 B
Go
package iface
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/pkg/errors"
|
|
"github.com/prysmaticlabs/prysm/v5/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)
|
|
}
|