Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (16 sloc) 627 Bytes
package rpc
import (
"eth2-exporter/types"
"github.com/sirupsen/logrus"
)
// Client provides an interface for RPC clients
type Client interface {
GetChainHead() (*types.ChainHead, error)
GetEpochData(epoch uint64) (*types.EpochData, error)
GetValidatorQueue() (*types.ValidatorQueue, map[string]uint64, error)
GetAttestationPool() ([]*types.Attestation, error)
GetEpochAssignments(epoch uint64) (*types.EpochAssignments, error)
GetBlocksBySlot(slot uint64) ([]*types.Block, error)
GetValidatorParticipation(epoch uint64) (*types.ValidatorParticipation, error)
}
var logger = logrus.New().WithField("module", "rpc")
You can’t perform that action at this time.