Documentation ¶
Index ¶
- Constants
- type AlphabetState
- type EpochState
- type IRFetcher
- type Params
- type Processor
- func (gp *Processor) HandleAlphabetSync(e event.Event)
- func (gp *Processor) ListenerNotaryHandlers() []event.NotaryHandlerInfo
- func (gp *Processor) ListenerNotaryParsers() []event.NotaryParserInfo
- func (gp *Processor) ListenerNotificationHandlers() []event.NotificationHandlerInfo
- func (gp *Processor) ListenerNotificationParsers() []event.NotificationParserInfo
- func (gp *Processor) TimersHandlers() []event.NotificationHandlerInfo
- type Sync
- type Voter
Constants ¶
const ProcessorPoolSize = 1
ProcessorPoolSize limits pool size for governance Processor. Processor manages governance sync tasks. This process must not be interrupted by other sync operation, so we limit pool size for processor to one.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlphabetState ¶
type AlphabetState interface {
IsAlphabet() bool
}
AlphabetState is a callback interface for innerring global state.
type EpochState ¶
type EpochState interface {
EpochCounter() uint64
}
EpochState is a callback interface for innerring global state.
type IRFetcher ¶ added in v0.23.0
type IRFetcher interface {
InnerRingKeys() (keys.PublicKeys, error)
}
IRFetcher is a callback interface for innerring keys. Implementation must take into account availability of the notary contract.
type Params ¶
type Params struct { Log *zap.Logger AlphabetState AlphabetState EpochState EpochState Voter Voter IRFetcher IRFetcher MorphClient *client.Client MainnetClient *client.Client NeoFSClient *neofscontract.ClientWrapper NetmapClient *nmWrapper.Wrapper NotaryDisabled bool }
Params of the processor constructor.
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
Processor of events related to governance in the network.
func (*Processor) HandleAlphabetSync ¶
func (*Processor) ListenerNotaryHandlers ¶ added in v0.25.0
func (gp *Processor) ListenerNotaryHandlers() []event.NotaryHandlerInfo
ListenerNotaryHandlers for the 'event.Listener' event producer.
func (*Processor) ListenerNotaryParsers ¶ added in v0.25.0
func (gp *Processor) ListenerNotaryParsers() []event.NotaryParserInfo
ListenerNotaryParsers for the 'event.Listener' event producer.
func (*Processor) ListenerNotificationHandlers ¶ added in v0.25.0
func (gp *Processor) ListenerNotificationHandlers() []event.NotificationHandlerInfo
ListenerNotificationHandlers for the 'event.Listener' event producer.
func (*Processor) ListenerNotificationParsers ¶ added in v0.25.0
func (gp *Processor) ListenerNotificationParsers() []event.NotificationParserInfo
ListenerNotificationParsers for the 'event.Listener' event producer.
func (*Processor) TimersHandlers ¶
func (gp *Processor) TimersHandlers() []event.NotificationHandlerInfo
TimersHandlers for the 'Timers' event producer.
type Sync ¶
type Sync struct{}
Sync is a event to start governance synchronization.
func NewSyncEvent ¶
func NewSyncEvent() Sync
type Voter ¶
type Voter interface {
VoteForSidechainValidator(keys keys.PublicKeys) error
}
Voter is a callback interface for alphabet contract voting.