Documentation ¶
Overview ¶
Package credit describes the types and methods to interact with the credits.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { // Balance fetches the current balance of credits. Balance(ctx context.Context) (*big.Int, error) // Balance fetches the current balance of credits. BalanceOf(ctx context.Context, address common.Address) (*big.Int, error) // Transfer tranfers credits from one address to another. Transfer(ctx context.Context, to common.Address, amount *big.Int) error // ReduceToBalance reduces a channel of transfers into balance. ReduceToBalance( ctx context.Context, transfers <-chan types.Transfer, ) (<-chan *big.Int, error) }
Manager handles the credits of the user.
Click to show internal directories.
Click to hide internal directories.