mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-08 18:51:19 +00:00
2806326155
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
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)
|
|
}
|