Documentation ¶
Index ¶
- type FlowchAPI
- func (a *FlowchAPI) FlowchAllocateLane(ctx context.Context, ch address.Address) (uint64, error)
- func (a *FlowchAPI) FlowchAvailableFunds(ctx context.Context, ch address.Address) (*api.ChannelAvailableFunds, error)
- func (a *FlowchAPI) FlowchAvailableFundsByFromTo(ctx context.Context, from, to address.Address) (*api.ChannelAvailableFunds, error)
- func (a *FlowchAPI) FlowchCollect(ctx context.Context, addr address.Address) (cid.Cid, error)
- func (a *FlowchAPI) FlowchGet(ctx context.Context, from, to address.Address, amt types.BigInt) (*api.ChannelInfo, error)
- func (a *FlowchAPI) FlowchGetWaitReady(ctx context.Context, sentinel cid.Cid) (address.Address, error)
- func (a *FlowchAPI) FlowchList(ctx context.Context) ([]address.Address, error)
- func (a *FlowchAPI) FlowchNewPayment(ctx context.Context, from, to address.Address, vouchers []api.FlowVoucherSpec) (*api.FlowInfo, error)
- func (a *FlowchAPI) FlowchSettle(ctx context.Context, addr address.Address) (cid.Cid, error)
- func (a *FlowchAPI) FlowchStatus(ctx context.Context, pch address.Address) (*api.FlowchStatus, error)
- func (a *FlowchAPI) FlowchVoucherAdd(ctx context.Context, ch address.Address, sv *flowch.SignedVoucher, ...) (types.BigInt, error)
- func (a *FlowchAPI) FlowchVoucherCheckSpendable(ctx context.Context, ch address.Address, sv *flowch.SignedVoucher, ...) (bool, error)
- func (a *FlowchAPI) FlowchVoucherCheckValid(ctx context.Context, ch address.Address, sv *flowch.SignedVoucher) error
- func (a *FlowchAPI) FlowchVoucherCreate(ctx context.Context, pch address.Address, amt types.BigInt, lane uint64) (*api.FlowVoucherCreateResult, error)
- func (a *FlowchAPI) FlowchVoucherList(ctx context.Context, pch address.Address) ([]*flowch.SignedVoucher, error)
- func (a *FlowchAPI) FlowchVoucherSubmit(ctx context.Context, ch address.Address, sv *flowch.SignedVoucher, ...) (cid.Cid, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlowchAPI ¶
func (*FlowchAPI) FlowchAllocateLane ¶
func (*FlowchAPI) FlowchAvailableFunds ¶
func (*FlowchAPI) FlowchAvailableFundsByFromTo ¶
func (*FlowchAPI) FlowchCollect ¶
func (*FlowchAPI) FlowchGetWaitReady ¶
func (*FlowchAPI) FlowchList ¶
func (*FlowchAPI) FlowchNewPayment ¶
func (*FlowchAPI) FlowchSettle ¶
func (*FlowchAPI) FlowchStatus ¶
func (*FlowchAPI) FlowchVoucherAdd ¶
func (*FlowchAPI) FlowchVoucherCheckSpendable ¶
func (*FlowchAPI) FlowchVoucherCheckValid ¶
func (*FlowchAPI) FlowchVoucherCreate ¶
func (a *FlowchAPI) FlowchVoucherCreate(ctx context.Context, pch address.Address, amt types.BigInt, lane uint64) (*api.FlowVoucherCreateResult, error)
FlowchVoucherCreate creates a new signed voucher on the given payment channel with the given lane and amount. The value passed in is exactly the value that will be used to create the voucher, so if previous vouchers exist, the actual additional value of this voucher will only be the difference between the two. If there are insufficient funds in the channel to create the voucher, returns a nil voucher and the shortfall.
func (*FlowchAPI) FlowchVoucherList ¶
func (*FlowchAPI) FlowchVoucherSubmit ¶
Click to show internal directories.
Click to hide internal directories.