Versions in this module Expand all Collapse all v0 v0.4.0 Apr 4, 2024 Changes in this version + type RpcClient interface + GetBill func(ctx context.Context, unitID types.UnitID, includeStateProof bool) (*api.Bill, error) + GetFeeCreditRecord func(ctx context.Context, unitID types.UnitID, includeStateProof bool) (*api.FeeCreditBill, error) + GetRoundNumber func(ctx context.Context) (uint64, error) + GetTransactionProof func(ctx context.Context, txHash types.Bytes) (*types.TransactionRecord, *types.TxProof, error) + GetUnitsByOwnerID func(ctx context.Context, ownerID types.Bytes) ([]types.UnitID, error) + SendTransaction func(ctx context.Context, tx *types.TransactionOrder) ([]byte, error) v0.3.0 Feb 28, 2024 Changes in this version + type BackendAPI interface + GetBalance func(ctx context.Context, pubKey []byte, includeDCBills bool) (uint64, error) + GetBills func(ctx context.Context, pubKey []byte) ([]*wallet.Bill, error) + GetFeeCreditBill func(ctx context.Context, unitID types.UnitID) (*wallet.Bill, error) + GetRoundNumber func(ctx context.Context) (*wallet.RoundNumber, error) + GetTxProof func(ctx context.Context, unitID types.UnitID, txHash wallet.TxHash) (*wallet.Proof, error) + ListBills func(ctx context.Context, pubKey []byte, includeDCBills bool, offsetKey string, ...) (*backend.ListBillsResponse, error) + PostTransactions func(ctx context.Context, pubKey wallet.PubKey, txs *wallet.Transactions) error + type DustCollectionResult struct + LockProof *wallet.Proof + SwapProof *wallet.Proof + func (d *DustCollectionResult) GetFeeSum() (uint64, error) + type DustCollector struct + func NewDustCollector(systemID types.SystemID, maxBillsPerDC int, txTimeout uint64, ...) *DustCollector + func (w *DustCollector) Close() error + func (w *DustCollector) CollectDust(ctx context.Context, accountKey *account.AccountKey) (*DustCollectionResult, error) + type UnitLocker interface + Close func() error + GetUnit func(accountID, unitID []byte) (*unitlock.LockedUnit, error) + GetUnits func(accountID []byte) ([]*unitlock.LockedUnit, error) + LockUnit func(lockedBill *unitlock.LockedUnit) error + UnlockUnit func(accountID, unitID []byte) error