Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventInformation ¶
type EventInformation struct { Name string Processor EventProcessor }
type EventMap ¶
func NewEventMap ¶
func NewEventMap() *EventMap
type EventProcessor ¶
type EventProcessor func(eth layer1.Client, contracts layer1.AllSmartContracts, logger *logrus.Entry, state *MonitorState, log types.Log) error
type MonitorState ¶
type MonitorState struct { sync.RWMutex `json:"-"` Version uint8 `json:"version"` CommunicationFailures uint32 `json:"communicationFailures"` EthereumInSync bool `json:"-"` HighestBlockProcessed uint64 `json:"highestBlockProcessed"` HighestBlockFinalized uint64 `json:"highestBlockFinalized"` HighestEpochProcessed uint32 `json:"highestEpochProcessed"` HighestEpochSeen uint32 `json:"highestEpochSeen"` EndpointInSync bool `json:"-"` LatestDepositProcessed uint32 `json:"latestDepositProcessed"` LatestDepositSeen uint32 `json:"latestDepositSeen"` PeerCount uint32 `json:"peerCount"` IsInitialized bool `json:"-"` ValidatorSets map[uint32]ValidatorSet `json:"validatorSets"` Validators map[uint32][]Validator `json:"validators"` PotentialValidators map[common.Address]PotentialValidator `json:"potentialValidators"` CanonicalVersion bindings.CanonicalVersion `json:"canonicalVersion"` }
MonitorState contains info required to monitor Ethereum.
func GetMonitorState ¶
func GetMonitorState(db *db.Database) (*MonitorState, error)
Get a copy of the monitor state that is saved on disk.
func NewMonitorState ¶
func NewMonitorState() *MonitorState
func (*MonitorState) Clone ¶
func (s *MonitorState) Clone() *MonitorState
Clone builds a deep copy of a small portion of state TODO Make this create a complete clone of state.
func (*MonitorState) Diff ¶
func (s *MonitorState) Diff(o *MonitorState) (string, bool)
Diff builds a textual description between states.
func (*MonitorState) PersistState ¶
func (mon *MonitorState) PersistState(db *db.Database) error
func (*MonitorState) String ¶
func (s *MonitorState) String() string
type PotentialValidator ¶
type PotentialValidator struct { Account common.Address `json:"account"` TokenID uint64 `json:"tokenID"` }
Potential Validator contains information about a validators that entered the pool, but might not participated on ETHDKG yet.
Click to show internal directories.
Click to hide internal directories.