Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNilWrapper = errors.New("balance contract client wrapper is nil")
ErrNilWrapper is returned by functions that expect a non-nil Wrapper pointer, but received nil.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client represents the Balance contract client.
It is a type alias of github.com/nspcc-dev/neofs-node/pkg/morph/client/balance.Client.
type Wrapper ¶
type Wrapper struct {
// contains filtered or unexported fields
}
Wrapper is a wrapper over balance contract client which implements:
- tool for obtaining the amount of funds in the client's account;
- tool for obtaining decimal precision of currency transactions.
Working wrapper must be created via constructor New. Using the Wrapper that has been created with new(Wrapper) expression (or just declaring a Wrapper variable) is unsafe and can lead to panic.
func New ¶
New creates, initializes and returns the Wrapper instance.
If Client is nil, balance.ErrNilClient is returned.
Click to show internal directories.
Click to hide internal directories.