powergate: github.com/textileio/powergate/paych/lotus Index | Files

package lotus

import "github.com/textileio/powergate/paych/lotus"

Index

Package Files

module.go

type Module Uses

type Module struct {
    // contains filtered or unexported fields
}

Module provides access to the paych api.

func New Uses

func New(clientBuilder lotus.ClientBuilder) *Module

New creates a new paych module.

func (*Module) Create Uses

func (m *Module) Create(ctx context.Context, from string, to string, amount uint64) (ffs.PaychInfo, cid.Cid, error)

Create creates a new payment channel.

func (*Module) List Uses

func (m *Module) List(ctx context.Context, addrs ...string) ([]ffs.PaychInfo, error)

List lists all payment channels involving the specified addresses.

func (*Module) Redeem Uses

func (m *Module) Redeem(ctx context.Context, ch string) error

Redeem redeems a payment channel.

Package lotus imports 9 packages (graph) and is imported by 5 packages. Updated 2020-09-21. Refresh now. Tools for package owners.