Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶ added in v0.45.0
func New(s *ecdsa.PrivateKey, net netmap.State, c BalanceContract) protoaccounting.AccountingServiceServer
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.
Click to show internal directories.
Click to hide internal directories.