accounting

package
v0.49.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2025 License: GPL-3.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v0.45.0

New provides protoaccounting.AccountingServiceServer based on specified BalanceContract.

All response messages are signed using specified signer and have current epoch in the meta header.

Types

type BalanceContract added in v0.45.0

type BalanceContract interface {
	// Decimals returns the number of decimals used by NeoFS tokens.
	Decimals() (uint32, error)
	// BalanceOf returns current balance of the referenced user in NeoFS tokens.
	BalanceOf(user.ID) (*big.Int, error)
}

BalanceContract groups ops of the Balance contract deployed in the FS chain required to serve NeoFS API Accounting service.

Jump to

Keyboard shortcuts

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