Documentation ¶
Index ¶
- type PaychAPI
- func (a *PaychAPI) PaychAllocateLane(ctx context.Context, ch address.Address) (uint64, error)
- func (a *PaychAPI) PaychAvailableFunds(ch address.Address) (*api.ChannelAvailableFunds, error)
- func (a *PaychAPI) PaychAvailableFundsByFromTo(from, to address.Address) (*api.ChannelAvailableFunds, error)
- func (a *PaychAPI) PaychCollect(ctx context.Context, addr address.Address) (cid.Cid, error)
- func (a *PaychAPI) PaychGet(ctx context.Context, from, to address.Address, amt types.BigInt) (*api.ChannelInfo, error)
- func (a *PaychAPI) PaychGetWaitReady(ctx context.Context, sentinel cid.Cid) (address.Address, error)
- func (a *PaychAPI) PaychList(ctx context.Context) ([]address.Address, error)
- func (a *PaychAPI) PaychNewPayment(ctx context.Context, from, to address.Address, vouchers []api.VoucherSpec) (*api.PaymentInfo, error)
- func (a *PaychAPI) PaychSettle(ctx context.Context, addr address.Address) (cid.Cid, error)
- func (a *PaychAPI) PaychStatus(ctx context.Context, pch address.Address) (*api.PaychStatus, error)
- func (a *PaychAPI) PaychVoucherAdd(ctx context.Context, ch address.Address, sv *paych.SignedVoucher, proof []byte, ...) (types.BigInt, error)
- func (a *PaychAPI) PaychVoucherCheckSpendable(ctx context.Context, ch address.Address, sv *paych.SignedVoucher, ...) (bool, error)
- func (a *PaychAPI) PaychVoucherCheckValid(ctx context.Context, ch address.Address, sv *paych.SignedVoucher) error
- func (a *PaychAPI) PaychVoucherCreate(ctx context.Context, pch address.Address, amt types.BigInt, lane uint64) (*api.VoucherCreateResult, error)
- func (a *PaychAPI) PaychVoucherList(ctx context.Context, pch address.Address) ([]*paych.SignedVoucher, error)
- func (a *PaychAPI) PaychVoucherSubmit(ctx context.Context, ch address.Address, sv *paych.SignedVoucher, ...) (cid.Cid, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PaychAPI ¶
type PaychAPI struct { fx.In full.MpoolAPI full.WalletAPI full.ChainAPI PaychMgr *paychmgr.Manager }
func (*PaychAPI) PaychAllocateLane ¶
func (*PaychAPI) PaychAvailableFunds ¶ added in v0.6.0
func (a *PaychAPI) PaychAvailableFunds(ch address.Address) (*api.ChannelAvailableFunds, error)
func (*PaychAPI) PaychAvailableFundsByFromTo ¶ added in v0.6.0
func (a *PaychAPI) PaychAvailableFundsByFromTo(from, to address.Address) (*api.ChannelAvailableFunds, error)
func (*PaychAPI) PaychCollect ¶ added in v0.5.0
func (*PaychAPI) PaychGetWaitReady ¶ added in v0.5.0
func (*PaychAPI) PaychNewPayment ¶
func (a *PaychAPI) PaychNewPayment(ctx context.Context, from, to address.Address, vouchers []api.VoucherSpec) (*api.PaymentInfo, error)
func (*PaychAPI) PaychSettle ¶ added in v0.5.0
func (*PaychAPI) PaychStatus ¶
func (*PaychAPI) PaychVoucherAdd ¶
func (*PaychAPI) PaychVoucherCheckSpendable ¶
func (*PaychAPI) PaychVoucherCheckValid ¶
func (*PaychAPI) PaychVoucherCreate ¶
func (a *PaychAPI) PaychVoucherCreate(ctx context.Context, pch address.Address, amt types.BigInt, lane uint64) (*api.VoucherCreateResult, error)
PaychVoucherCreate 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 (*PaychAPI) PaychVoucherList ¶
func (*PaychAPI) PaychVoucherSubmit ¶
Click to show internal directories.
Click to hide internal directories.