2023-07-07 14:49:44 +00:00
|
|
|
package validator
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/blockchain"
|
2023-08-24 21:11:41 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/db"
|
2023-08-05 20:54:12 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/rpc/core"
|
2023-08-24 21:11:41 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/rpc/lookup"
|
2023-07-07 14:49:44 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/sync"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Server defines a server implementation for HTTP endpoints, providing
|
|
|
|
// access data relevant to the Ethereum Beacon Chain.
|
|
|
|
type Server struct {
|
2023-08-24 21:11:41 +00:00
|
|
|
GenesisTimeFetcher blockchain.TimeFetcher
|
|
|
|
SyncChecker sync.Checker
|
|
|
|
HeadFetcher blockchain.HeadFetcher
|
|
|
|
CoreService *core.Service
|
|
|
|
OptimisticModeFetcher blockchain.OptimisticModeFetcher
|
|
|
|
Stater lookup.Stater
|
|
|
|
ChainInfoFetcher blockchain.ChainInfoFetcher
|
|
|
|
BeaconDB db.ReadOnlyDatabase
|
|
|
|
FinalizationFetcher blockchain.FinalizationFetcher
|
2023-07-07 14:49:44 +00:00
|
|
|
}
|