mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-07 02:02:18 +00:00
6a638bd148
* in progress * implementation done * bzl * fixes * tests in progress * tests * go mod tidy * Update beacon-chain/rpc/eth/events/events.go Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com> * fix config test * fix unreachable code issue * remove proto service dir * test fix --------- Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com> Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
20 lines
762 B
Go
20 lines
762 B
Go
// Package events defines a gRPC events service implementation,
|
|
// following the official API standards https://ethereum.github.io/beacon-apis/#/.
|
|
// This package includes the events endpoint.
|
|
package events
|
|
|
|
import (
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/blockchain"
|
|
opfeed "github.com/prysmaticlabs/prysm/v4/beacon-chain/core/feed/operation"
|
|
statefeed "github.com/prysmaticlabs/prysm/v4/beacon-chain/core/feed/state"
|
|
)
|
|
|
|
// Server defines a server implementation of the gRPC events service,
|
|
// providing RPC endpoints to subscribe to events from the beacon node.
|
|
type Server struct {
|
|
StateNotifier statefeed.Notifier
|
|
OperationNotifier opfeed.Notifier
|
|
HeadFetcher blockchain.HeadFetcher
|
|
ChainInfoFetcher blockchain.ChainInfoFetcher
|
|
}
|