alphabet

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contracts added in v0.16.0

type Contracts interface {
	// Get by index must return address of the
	// alphabet contract by index of the glagolitic
	// letter (e.g 0 for Az, 40 for Izhitsa).
	//
	// Must return false if index does not
	// match to 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 {
	Index() int
}

Indexer is a callback interface for inner ring global state.

type Params

type Params struct {
	Log               *zap.Logger
	PoolSize          int
	AlphabetContracts Contracts
	NetmapContract    util.Uint160
	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 sidechain.

func New

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

New creates neofs mainnet contract processor instance.

func (*Processor) HandleGasEmission added in v0.15.0

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

func (*Processor) ListenerHandlers

func (np *Processor) ListenerHandlers() []event.HandlerInfo

ListenerHandlers for the 'event.Listener' event producer.

func (*Processor) ListenerParsers

func (np *Processor) ListenerParsers() []event.ParserInfo

ListenerParsers for the 'event.Listener' event producer.

func (*Processor) TimersHandlers

func (np *Processor) TimersHandlers() []event.HandlerInfo

TimersHandlers for the 'Timers' event producer.

Jump to

Keyboard shortcuts

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