alphabet

package
v0.0.0-...-0ba0ddf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contracts

type Contracts interface {
	// GetByIndex must return the address of the
	// alphabet contract by index of the glagolitic
	// letter (e.g 0 for Az, 40 for Izhitsa).
	//
	// Must return false if the index does not
	// match any alphabet contract.
	GetByIndex(int) (util.Uint160, bool)
}

Contracts is an interface of the storage of the alphabet contract addresses.

type Indexer

type Indexer interface {
	AlphabetIndex() int
}

Indexer is a callback interface for inner ring global state.

type Params

type Params struct {
	Log               *zap.Logger
	PoolSize          int
	AlphabetContracts Contracts
	NetmapClient      *nmClient.Client
	MorphClient       *client.Client
	IRList            Indexer
	StorageEmission   uint64
}

Params of the processor constructor.

type Processor

type Processor struct {
	// contains filtered or unexported fields
}

Processor of events produced for alphabet contracts in the sidechain.

func New

func New(p *Params) (*Processor, error)

New creates a neofs mainnet contract processor instance.

func (*Processor) HandleGasEmission

func (ap *Processor) HandleGasEmission(ev event.Event)

func (*Processor) ListenerNotaryHandlers

func (ap *Processor) ListenerNotaryHandlers() []event.NotaryHandlerInfo

ListenerNotaryHandlers for the 'event.Listener' event producer.

func (*Processor) ListenerNotaryParsers

func (ap *Processor) ListenerNotaryParsers() []event.NotaryParserInfo

ListenerNotaryParsers for the 'event.Listener' event producer.

func (*Processor) ListenerNotificationHandlers

func (ap *Processor) ListenerNotificationHandlers() []event.NotificationHandlerInfo

ListenerNotificationHandlers for the 'event.Listener' event producer.

func (*Processor) ListenerNotificationParsers

func (ap *Processor) ListenerNotificationParsers() []event.NotificationParserInfo

ListenerNotificationParsers for the 'event.Listener' event producer.

func (*Processor) TimersHandlers

func (ap *Processor) TimersHandlers() []event.NotificationHandlerInfo

TimersHandlers for the 'Timers' event producer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL