Versions in this module Expand all Collapse all v0 v0.4.0 Apr 4, 2024 Changes in this version + var ErrNotFound = errors.New("not found") + func WaitForConf(ctx context.Context, c RpcClient, tx *types.TransactionOrder) (*wallet.Proof, error) + type Bill struct + BillData *money.BillData + ID types.UnitID + func FetchBill(ctx context.Context, c RpcClient, unitID types.UnitID) (*Bill, error) + func FetchBills(ctx context.Context, c RpcClient, ownerID []byte) ([]*Bill, error) + func (b *Bill) Backlink() []byte + func (b *Bill) IsLocked() bool + func (b *Bill) Value() uint64 + type FeeCreditBill struct + FeeCreditRecord *unit.FeeCreditRecord + ID types.UnitID + func FetchFeeCreditBill(ctx context.Context, c RpcClient, fcrID types.UnitID) (*FeeCreditBill, error) + func (b *FeeCreditBill) Backlink() []byte + func (b *FeeCreditBill) Balance() uint64 + func (b *FeeCreditBill) IsLocked() bool + type RpcClient interface + GetBill func(ctx context.Context, unitID types.UnitID, includeStateProof bool) (*Bill, error) + GetFeeCreditRecord func(ctx context.Context, unitID types.UnitID, includeStateProof bool) (*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)