mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-08 18:51:19 +00:00
67595d576c
* fixing typo on casing * WIP get missed slot * missed in commit * reverting changes onfeedback * reverting bazel * using the current or head slots for events * fixing linting * use emitSlot * fixing time and preRando change * updating based on feedback * fixing linting * clarifying variable * removing useless if statement * fixing function to use the current slot+1 * updating based on feedback * fixing unit tests * missed dependency injection * fixing linting
25 lines
923 B
Go
25 lines
923 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 (
|
|
"context"
|
|
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/blockchain"
|
|
blockfeed "github.com/prysmaticlabs/prysm/v4/beacon-chain/core/feed/block"
|
|
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 {
|
|
Ctx context.Context
|
|
StateNotifier statefeed.Notifier
|
|
BlockNotifier blockfeed.Notifier
|
|
OperationNotifier opfeed.Notifier
|
|
HeadFetcher blockchain.HeadFetcher
|
|
ChainInfoFetcher blockchain.ChainInfoFetcher
|
|
}
|