Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BucketDepth = uint8(16) ErrBatchCreate = errors.New("batch creation failed") ErrInsufficientFunds = errors.New("insufficient token balance") ErrInvalidDepth = errors.New("invalid depth") ErrBatchTopUp = errors.New("batch topUp failed") ErrBatchDilute = errors.New("batch dilute failed") )
Functions ¶
Types ¶
type Interface ¶
type Interface interface { CreateBatch(ctx context.Context, initialBalance *big.Int, depth uint8, immutable bool, label string) ([]byte, error) TopUpBatch(ctx context.Context, batchID []byte, topupBalance *big.Int) error DiluteBatch(ctx context.Context, batchID []byte, newDepth uint8) error AvailableBalance(ctx context.Context, address common.Address) (*big.Int, error) }
Click to show internal directories.
Click to hide internal directories.