2021-04-23 12:06:05 +00:00
|
|
|
// Package debugv1 defines a gRPC beacon service implementation,
|
2021-02-22 22:48:49 +00:00
|
|
|
// following the official API standards https://ethereum.github.io/eth2.0-APIs/#/.
|
|
|
|
// This package includes the beacon and config endpoints.
|
|
|
|
package debugv1
|
|
|
|
|
|
|
|
import (
|
2021-04-14 17:01:24 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/blockchain"
|
2021-02-22 22:48:49 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/db"
|
2021-03-29 21:04:35 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/rpc/statefetcher"
|
2021-02-22 22:48:49 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// Server defines a server implementation of the gRPC Beacon Chain service,
|
|
|
|
// providing RPC endpoints to access data relevant to the Ethereum 2.0 phase 0
|
|
|
|
// beacon chain.
|
|
|
|
type Server struct {
|
2021-03-29 21:04:35 +00:00
|
|
|
BeaconDB db.ReadOnlyDatabase
|
2021-04-14 17:01:24 +00:00
|
|
|
HeadFetcher blockchain.HeadFetcher
|
2021-03-29 21:04:35 +00:00
|
|
|
StateFetcher statefetcher.Fetcher
|
2021-02-22 22:48:49 +00:00
|
|
|
}
|