settlement

package
v0.49.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBasicIncomeEvent added in v0.46.0

func NewBasicIncomeEvent(epoch uint64) event.Event

NewBasicIncomeEvent for epoch.

Types

type AlphabetState added in v0.18.0

type AlphabetState interface {
	IsAlphabet() bool
}

AlphabetState is a callback interface for inner ring global state.

type BasicIncomeEvent added in v0.46.0

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

BasicIncomeEvent is an event of the beginning of basic income cash settlements.

func (BasicIncomeEvent) Epoch added in v0.48.0

func (e BasicIncomeEvent) Epoch() uint64

Epoch returns the number of the epoch in which the event was generated.

func (BasicIncomeEvent) MorphEvent added in v0.48.0

func (e BasicIncomeEvent) MorphEvent()

MorphEvent implements Neo: FS chain event.

type Option

type Option func(*options)

Option is a Processor constructor's option.

func WithLogger

func WithLogger(l *zap.Logger) Option

WithLogger returns option to override the component for logging.

type Prm

type Prm struct {
	State           AlphabetState
	ContainerClient *containerClient.Client
	NetmapClient    *netmapClient.Client
	BalanceClient   *balanceClient.Client
}

Prm groups the required parameters of Processor's constructor.

type Processor

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

Processor is an event handler for payments in the system.

func New

func New(prm Prm, opts ...Option) *Processor

New creates and returns a new Processor instance.

func (*Processor) HandleBasicIncomeEvent added in v0.46.0

func (p *Processor) HandleBasicIncomeEvent(e event.Event)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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