balance

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveState

type ActiveState interface {
	IsActive() bool
}

ActiveState is a callback interface for inner ring global state

type Params

type Params struct {
	Log             *zap.Logger
	PoolSize        int
	NeoFSContract   util.Uint160
	BalanceContract util.Uint160
	MainnetClient   *client.Client
	ActiveState     ActiveState
	Converter       PrecisionConverter
}

Params of the processor constructor.

type PrecisionConverter added in v0.12.0

type PrecisionConverter interface {
	ToFixed8(int64) int64
}

PrecisionConverter converts balance amount values.

type Processor

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

Processor of events produced by balance contract in morph chain.

func New

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

New creates balance contract processor instance.

func (*Processor) ListenerHandlers

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

ListenerHandlers for the 'event.Listener' event producer.

func (*Processor) ListenerParsers

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

ListenerParsers for the 'event.Listener' event producer.

func (*Processor) TimersHandlers

func (bp *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