balance

package
v0.44.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlphabetState

type AlphabetState interface {
	IsAlphabet() bool
}

AlphabetState is a callback interface for inner ring global state.

type FrostFSClient added in v0.37.0

type FrostFSClient interface {
	Cheque(p frostfscontract.ChequePrm) error
}

type Params

type Params struct {
	Log           *logger.Logger
	Metrics       metrics.Register
	PoolSize      int
	FrostFSClient FrostFSClient
	BalanceSC     util.Uint160
	AlphabetState AlphabetState
	Converter     PrecisionConverter
}

Params of the processor constructor.

type PrecisionConverter

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 the morphchain.

func New

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

New creates a balance contract processor instance.

func (*Processor) ListenerNotaryHandlers

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

ListenerNotaryHandlers for the 'event.Listener' event producer.

func (*Processor) ListenerNotaryParsers

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

ListenerNotaryParsers for the 'event.Listener' event producer.

func (*Processor) ListenerNotificationHandlers

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

ListenerNotificationHandlers for the 'event.Listener' event producer.

func (*Processor) ListenerNotificationParsers

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

ListenerNotificationParsers for the 'event.Listener' event producer.

Jump to

Keyboard shortcuts

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