Help us shape the future of Go! Take the 2026 Go Developer Survey

container

package
v0.47.11 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: GPL-3.0 Imports: 26 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(context.Context) bool
}

AlphabetState is a callback interface for inner ring global state.

type ContClient added in v0.37.0

type ContClient interface {
	ContractAddress() util.Uint160
	Get(ctx context.Context, cid []byte) (*containercore.Container, error)
}

type FrostFSIDClient added in v0.38.0

type FrostFSIDClient interface {
	GetSubject(ctx context.Context, addr util.Uint160) (*frostfsidclient.Subject, error)
}

type MorphClient added in v0.37.0

type MorphClient interface {
	NotarySignAndInvokeTX(mainTx *transaction.Transaction) error
}

type NetworkState

type NetworkState interface {
	// Epoch must return the number of the current epoch.
	//
	// Must return any error encountered
	// which did not allow reading the value.
	Epoch(ctx context.Context) (uint64, error)

	// HomomorphicHashDisabled must return boolean that
	// represents homomorphic network state:
	// 	* true if hashing is disabled;
	// 	* false if hashing is enabled.
	//
	// which did not allow reading the value.
	HomomorphicHashDisabled(ctx context.Context) (bool, error)
}

NetworkState is an interface of a component that provides access to network state.

type Params

type Params struct {
	Log             *logger.Logger
	Metrics         metrics.Register
	PoolSize        int
	AlphabetState   AlphabetState
	ContainerClient ContClient
	MorphClient     MorphClient
	NetworkState    NetworkState
	FrostFSIDClient FrostFSIDClient
}

Params of the processor constructor.

type Processor

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

Processor of events produced by container contract in the sidechain.

func New

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

New creates a container contract processor instance.

func (*Processor) ListenerNotaryHandlers

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

ListenerNotaryHandlers for the 'event.Listener' notary event producer.

func (*Processor) ListenerNotaryParsers

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

ListenerNotaryParsers for the 'event.Listener' notary event producer.

func (*Processor) ListenerNotificationHandlers

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

ListenerNotificationHandlers for the 'event.Listener' event producer.

Jump to

Keyboard shortcuts

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