Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
ErrNotFound is returned by API methods if the requested item does not exist.
Functions ¶
func WaitForConf ¶
Types ¶
type FeeCreditBill ¶
type FeeCreditBill struct { ID types.UnitID FeeCreditRecord *unit.FeeCreditRecord }
func FetchFeeCreditBill ¶
func (*FeeCreditBill) Backlink ¶
func (b *FeeCreditBill) Backlink() []byte
func (*FeeCreditBill) Balance ¶
func (b *FeeCreditBill) Balance() uint64
func (*FeeCreditBill) IsLocked ¶
func (b *FeeCreditBill) IsLocked() bool
type RpcClient ¶
type RpcClient interface { GetRoundNumber(ctx context.Context) (uint64, error) GetBill(ctx context.Context, unitID types.UnitID, includeStateProof bool) (*Bill, error) GetFeeCreditRecord(ctx context.Context, unitID types.UnitID, includeStateProof bool) (*FeeCreditBill, error) GetUnitsByOwnerID(ctx context.Context, ownerID types.Bytes) ([]types.UnitID, error) GetTransactionProof(ctx context.Context, txHash types.Bytes) (*types.TransactionRecord, *types.TxProof, error) }
Click to show internal directories.
Click to hide internal directories.